[OSM-dev] Binary OSM; the first pass encoder

Stefan de Konink stefan at konink.de
Sun Nov 9 17:07:02 GMT 2008


Chris Browet wrote:
> UTF16 is just the default for Qt strings ;-) wchar* is UTF16, too. There 
> definitely are UTF characters used, so char* is probably too 
> restrictive, unless you handle UTF yourself.

But like char* utfX is terminated by \0 too right? And is backwards 
compatible?

> ATM, my region size is ~1 km², which creates files, strings included, of 
> 500kb to 1Mb. Decision is to be made whether it is useful to handle 
> diffs rather than downloading the full region.
> Obviously, if the goal is to have a full up-to-date planet, this is not 
> viable. It is manageable this way up to the state/province level, I think.

True.

>     - Use separate files for strings and indices.
> 
> 
> Problem with this is that you will have one huge string file (if that's 
> what you mean), which will have to be loaded in memory

mmaping this file the memory allows the OS to make that decision.


Stefan




More information about the dev mailing list