3 ms·
PMTiles is absurdly great software.
by simonw 11mo ago
PMTiles is absurdly great software.
- Humphrey 11mo agoI know right! I'd never heard of HTTP Range requests until PMTiles - but gee it's an elegant solution.
- keepamovin 11mo agoHadn't seen PMTiles before, but that matches the mental model exactly! I chose physical file sharding over Range Requests on a single db because it felt safer for 'dumb' static hosts like CF. - less risk of a single 22GB file getting stuck or cached weirdly. Maybe it would work
- hyperbolablabla 11mo agoMy only gripe is that the tile metadata is stored as JSON, which I get is for compatibility reasons with existing software, but for e.g. a simple C program to implement the full spec you need to ship a JSON parser on top of the PMTiles parser itself.
- seg_lol 11mo agoA JSON parser is less than a thousand lines of code.
- Diti 11mo agoAnd where most of CPU time will be wasted in, if you care about profiling/improving responsiveness.
- keepamovin 11mo agoWhat's a better way?
- monerozcash 11mo agoAt that point you're just io bound, no? I can easily parse json at 100+GB/s on commodity hardware, but I'm gonna have a much harder time actually delivering that much data to parse.
- keepamovin 11mo agoHow would you store it?