Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework the tunnel and bridge layers for better performance
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. Fixes #60.
- Loading branch information