-
Notifications
You must be signed in to change notification settings - Fork 130
Only write XML rules that apply to minzoom/maxzoom of the containing layer #469
Comments
Interesting observation, thanks. For building a test case could you please add the relevant portions of the MML and MSS files? |
Here you go:
MSS
|
Was not that difficult to fix. What's great is that I noticed a nearly 3s shorter compile time for openstreetmap-carto on my machine, which is a speed increase of 20%. But it is important to test that there are no rendering problems. A quick test with osm-carto revealed no problems so far. |
Performance is a tricky topic for me. I did some benchmarking because I wanted to release 0.18 and while I got 14% improvement in processing time for osm-carto I got 97% degradation for OSM Bright. The lines decreased slightly by 100 or so for osm-carto but doubled for OSM Bright. This is unacceptable for release. I have to investigate what causes this. Maybe I will have to revert the change. |
The problem described above was none. It was caused by the fact that a regression for OSM Bright reduced the parsing time by half. |
If a layer is restricted to certain zoom levels by minzoom/maxzoom properties it can get rule that can never apply for this layer because they only apply for scales outside minzoom/maxzoom. The following example output shows a case were only one of the rules is needed:
The text was updated successfully, but these errors were encountered: