[SciPy-User] Multiprocessing and shared memory
Sun Oct 18 22:17:27 CDT 2009
Felix Schlesinger skrev:
> That does work if one is careful never to create any new reference to
> the shared array to or modify it in any other implicit way in the
> worker process.
No no no...
Only the pages (blocks of 4096 bytes) written to are copied. If you
don't write to the buffer, nothing it copied.
You don't write to the buffer of an ndarray by creating new references
> The problem is that a modification will not cause an
> error, but simply a copy (i.e. silent memory leak).
There is no memory leak here.
More information about the SciPy-User