You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling the project to a Mapnik XML file was taking a lot of time,
mainly due to the tunnel and bridge layers. Here are some fixes to
improve compilation time.
* Use attachments for tunnels and bridges instead of selecting all the
data three times from the database and filtering on it.
* Rework the filtering in `roads.mss` file to avoid having too many
levels of imbrication, responsible for a lot of overhead at compilation.
* Remove the upper zoom limit as there is no reason to stop displaying
the roads above zoom 20.
Before this PR, compilation time obtained through
```
\time carto cyclosm-cartocss-style/project.mml > /dev/null
```
was of about 5 minutes.
It is now of 24 seconds.
Fixescyclosm#60.
It currently takes at least 5 minutes to generate it, which is quite painful. :/
gravitystorm/openstreetmap-carto#1941 could probably give some hints for optimizing.
Current benchmark is, on my laptop
Which is quite weird because total time does not seem to match with the sum of other listed times :/
mapbox/carto#20 might be of interest as well.
EDIT: Same machine, running
carto
onopenstreetmap-carto
takes 40s. Running it on CyclOSM takes 5 minutes.EDIT2: Without layers
tunnel
andbridge
(mentions removed fromroads.mss
file), we are down to 20s compilation!The text was updated successfully, but these errors were encountered: