Opened 11 years ago

Closed 11 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:

Description

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 11 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 11 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.