[OSM-dev] mmap()

Marcus Wolschon Marcus at wolschon.biz
Thu Dec 4 19:07:39 GMT 2008


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.


>> (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.

>
>
>
> Stefan
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>




More information about the dev mailing list