[OSM-dev] mmap()

Stefan de Konink stefan at konink.de
Thu Dec 4 19:22:56 GMT 2008


Marcus Wolschon wrote:
> 2008/12/4 Stefan de Konink <stefan at konink.de>:
>> Marcus Wolschon wrote:
>>> The structure is mutable, meaning you can add, modify and
>>> remove nodes, ways and attributes at will.
>> How did you solve fragmentation?
> 
> Fragmentation occurs only in variable-length -records.
> I chose a fixed-length-record to avoid this issue.
> It allows for trivial reuse of empty spaces and speeds
> up seeking in the file.

So you do not maintain order, only use indices?

>>> (All code required to do
>>> that is already part of LibOSM.)
>> Could we make a C version of it too? Because I think embedded is J2ME...
>> but C is probably faster for other platforms.
> 
> YOU can. The spec is easy to understand.
> You can also compile my code into native code
> and link it using gcj/gcc.

:) I'll see what I can do after new year :)


Stefan




More information about the dev mailing list