[Qgis-developer] Removing old labelling

Nathan Woodrow madmanwoo at gmail.com
Tue Mar 6 08:37:51 EST 2012


It seems it is still slower the the old labelling even with points.  Using
the default settings for _new_ labelling I get this debug output.  Using
settings


   - Around Point
   - Search Method: Chain (Default)

Debug: src/core/qgsvectorlayer.cpp: 782: (drawRendererV2) Total features
processed 276
Debug: src/core/qgsmaprenderer.cpp: 514: (render) Layer rendered without
issues
Debug: src/core/qgsmaprenderer.cpp: 554: (render) Done rendering map layers
Debug: src/core/qgsvectorlayer.cpp: 319: (drawLabels) Starting draw of
labels: 2006_census_centroid20120306225731625
Debug: src/core/qgspallabeling.cpp: 1108: (drawLabeling) LABELING work:  13
ms ... labels# 164
Debug: src/core/qgspallabeling.cpp: 1231: (drawLabeling) LABELING draw:
 487 ms

_New_ with settings:

   - Over Point
   - Search Method: Chain (Default)

Debug: src/core/qgspallabeling.cpp: 1108: (drawLabeling) LABELING work:  7
ms ... labels# 126
Debug: src/core/qgspallabeling.cpp: 1231: (drawLabeling) LABELING draw:
 347 ms


With the _old_ labelling:

   - Over Point
   - Halo

Debug: src/core/qgspallabeling.cpp: 773: (prepareLayer) PREPARE LAYER
Debug: src/core/qgsvectorlayer.cpp: 782: (drawRendererV2) Total features
processed 276
Debug: src/core/qgsmaprenderer.cpp: 514: (render) Layer rendered without
issues
Debug: src/core/qgsmaprenderer.cpp: 554: (render) Done rendering map layers
Debug: src/core/qgsvectorlayer.cpp: 319: (drawLabels) Starting draw of
labels: 2006_census_centroid20120306225731625
Debug: src/core/qgsvectorlayer.cpp: 345: (drawLabels) Selecting features
based on view extent
Debug: src/core/qgsvectorlayer.cpp: 378: (drawLabels) Total features
processed 276
Debug: src/core/qgspallabeling.cpp: 1108: (drawLabeling) LABELING work:  0
ms ... labels# 0
Debug: src/core/qgspallabeling.cpp: 1231: (drawLabeling) LABELING draw:  0
ms

Only a small sample set but there is a speed difference.  The main thing
seems to be the painting which is slowing it down.

- Nathan

On Tue, Mar 6, 2012 at 11:18 PM, Andreas Neumann <a.neumann at carto.net>wrote:

> So - as I understand it - only area features are labeled slowly while the
> speed of point and line labeling is fast enough, correct?
>
> If this is the issue I can tell you that Martin Dobias is currently
> working on improving the speed of area feature labeling. So improvements in
> this respect should appear soon.
>
> Andreas
>
> On Tue, 6 Mar 2012 13:42:03 +0100,  wrote:
>
>  -----Werner Macho <werner.macho at gmail.com> ha scritto: -----
>>
>>  Per: luca_manganelli at comune.trento.**it<luca_manganelli at comune.trento.it>
>>> Da: Werner Macho <werner.macho at gmail.com>
>>> Data: 06/03/2012 01.31PM
>>> Cc: qgis-developer at lists.osgeo.org
>>> Oggetto: Re: [Qgis-developer] Removing old labelling
>>>
>>>
>>>
>>> Any way to find the bottleneck?
>>> It would be real nice to have the new labeling replacing the old one.
>>> Redundancy is nice.. but not forever.
>>> :)
>>> I wish i could find the bottleneck myself..
>>>
>>
>> Try it with many (>500) polygon shapes. It takes ages on a dual
>> core._________________________**______________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/**mailman/listinfo/qgis-**developer<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
>>
>
> --
> --
> Andreas Neumann
> Böschacherstrasse 10A
> 8624 Grüt (Gossau ZH)
> Switzerland
> ______________________________**_________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-**developer<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120306/377eace2/attachment.html


More information about the Qgis-developer mailing list