Opened 12 years ago

Closed 12 years ago

#777 closed defect (fixed)

[FIX] Optmize style painting

Reported by: Chris Browet Owned by: bvh-osm@…
Priority: major Milestone:
Component: merkaartor Version:
Keywords: Cc:


On my machine, using the "Mapnik" style shows a steep loss of painting performance, probably due to the increased number of tags pairs specified.

Running a valgrind shows that much time is spend in FeaturePainter::matchesTag.

Could the process be tuned?

Change History (2)

comment:1 Changed 12 years ago by bart@…

There is a caching mechanism in place, but it seems not effective for the expanded list of features. What we probably should do is for each feature keep a (cached) list of all possible painters and only try to match within that list. It trades memory for speed, however.

comment:2 Changed 12 years ago by bvh

Resolution: fixed
Status: newclosed

(In [7624]) Adds a complete caching mechanism for painters -> closes #777

Note: See TracTickets for help on using tickets.