Optimised stile-specific vector tile/sprite serving for static usecases #1757
Labels
mbtiles
Anything related to Martin's MBTiles support
performance
pmtiles
serving
Related to web serving component
sprites
Currently, we trust our users to have optimised the tiles and styles themselves.
Thing is, I don't think they do that optimally and think that we could do better.
This is definitively dependent on
To get performance benchmarks, likely also need
These optimiations only work if the style is static => a development mode is not something that would work with this model
There are optimisations, which we can do
Optimising the styles
One potential optimization I thought of is "query-optimizing" styles, similar to how databases optimize queries.
Here are some possible optimizations that might be achievable with a reasonable effort:
Opimising the tiles
This is likely a lot harder and much more of a risk.
Here is mapbox docs on a similar feature.
After discussion on slack, this blog post and this github repo came up doing the same thing
optimised sprites
Some styles may permit to statically know which sprites are going to be used.
For others, we might need to do a "full table scan" to gather this statistic.
Optimised fonts
nothing that I can think of.
Maybe pre-warming a cache, but nothing major.
Discussion
Now to the fun part:
The text was updated successfully, but these errors were encountered: