scipy/scipy — pull request #230 by pv (2012-05-28 09:57:50+00:00)
Title: ENH: io: support mmapping in wavfile.read

From ticket http://projects.scipy.org/scipy/ticket/1455

Thanks to "bemasc" for the idea.

---------------------------------------

This patch changes wavfile.read to use mmap to construct arrays. The arrays are copy-on-write, so the observed behaviors should all be unchanged, except that read() will return immediately, load data as necessary, and let the kernel manage the memory.