4 ms·
Just out of curiosity, is there no clever way to solve this within nginx with rules instead?
by fegu 2y ago
Just out of curiosity, is there no clever way to solve this within nginx with rules instead?
- jaakl 2y agoIn nutiteq mobile maps SDK (later Carto, now abandonware) we used specifically compressed bitmap to represent 'water' and 'empty land' tilemasks to cover these two special cases. We provided planet-scale mobile embedded mbtiles package in 30GB if I remember well. This tile mask (quite instant bitmap index) concept should work well for server case also.
- hyperknot 2y agoThe Linux kernel's filesystem cache is actually really efficient at doing this. I doubt we could come up with a nginx scripting solution which could be equally efficient.