Forum Navigation
io.MappedBuffer miss : unMap() and ...
Posted: 06/05/08 08:56:00 Modified: 06/05/08 10:14:08subject : database implementation using memory mapped file. The problem is that the relational algebra database uses memory mapped files to access the database. The database file can be bigger than the available address space so the file is mapped in chunks and the least recently used chunks are unmapped. (LRU Cache) ... it seems that io.MappedBuffer? has no unMap! However : close() seems to do the same job. In case that I am right I'd like to suggest to alias close unMap.
Further : I think you tango folks should have a look at the phobos 2 std.mmfile source, which is IMO more flexible. ie: void[] opSlice(); Returns entire file contents as an array.
void[] opSlice(ulong i1, ulong i2); Returns slice of file contents as an array. Bjoern (a Tango consumer)