Reclaiming (lots of) memory
Andrew Dalke
adalke at mindspring.com
Mon Oct 4 19:04:50 EDT 2004
Thomas Rast wrote:
> I've implemented it that way now. Using a pipe to transfer the data
> to the dbm appears to essentially double the I/O overhead and is very
> inefficient.
...
> Well, can't blame Python if you'd need black magic even in C ;-)
You could also try using shared memory. There's the raw
layer, like http://0pointer.de/lennart/projects/libshbuf/
or a higher layer like POSH ( http://poshmodule.sourceforge.net/ ).
I've used neither. The letter only works on Intel (and
perhaps only Linux) because it does locking with some inline
asm.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list