Open ItsLastDay opened 7 years ago
Scripts that seem to be useful:
response_headers = [('Content-type', 'image/png'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
Feature implemented in thefly branch. I'll merge to master one of these days.
It turned out that performance issues arise when implementing this feature absent-mindedly. Postponed.
The OpenStreetMap project gives statistics about their tile view count here. They have observed that only a small portion of all tiles are ever viewed for large zoom values. So they pre-render some tiles, and then generate the rest on-the-fly.
Another idea from the same source is using meta tiles. These are chunks of 64 tiles, computed as a single command. Later they are served separately. It is very clever, because neighbouring tiles are viewed simultaneously in most cases.
We can benefit from both ideas. Approximate list of steps needed: