[Tilesathome] Proposal: Keeping tileset as one file
Jiri Klement
jiri.klement at gmail.com
Sat Jun 14 17:45:16 BST 2008
> * Will tile download be done with PHP (has this been covered in
> the benchmarks - compare executing PHP code to extract data from
> a large tile with having Apache load the tile directly), or
> will we have an Apache module for that?
What about CGI script? It should be much simpler than apache module
and it will have access to sendfile() (zero copy), so it should be
almost as fast as loading files directly by Apache.
> * What transition strategy would we employ - surely we don't want
> to delete the current tiles, so they would either have to be
> converted to the new format (how long would that take?), or the
> tile download code would have to employ a "look for big tile
> first, deliver from old data if nothing found" mechanism.
I would go for "look for big tileset first".
> * Has the "incomplete upload" question been cleared (client uploads
> individual tiles that need to be incorporated into an existing big
> tile)? Can this be done without a significant performance penalty,
> and if not, how frequent is the situation?
Creating one big file is so much faster that extra processing needed
for merging tilesets shouldn't be significant. Anyway I didn't write
any benchmark to prove it.
I've analyzed t at h server log to find out how often this happend. You
can find it in one of my previous email. I've also attached csv file
showing complete/incomplete ratio to this email. In short, incomplete
downloads were quite rare (about 10%), but in last few day incomple
uploads were about 30%.
Other stuff:
It might be useful to include some metadata in aggregated file. I
would go for sure for blank land/sea info, as it doesn't add to file
size. Other useful info may be user name and version of the client.
Layer name and tileset coordinates won't hurt, but we can stay with
relaying on tileset filename.
>
> Bye
> Frederik
--
Jiri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stats.csv
Type: text/comma-separated-values
Size: 1096 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20080614/70f2a997/attachment.bin>
More information about the Tilesathome
mailing list