I’m running into an issue where I need to access thousands upon thousands of audio samples, and I was hoping to get some advice.
Managing memory is obviously a huge problem, but I was hoping to work around it by using memory-mapped files to keep the overhead down. However, I also am limited in the quantity of file handles I am allowed to have open at a time so I need to be able to map the file to memory and then close the descriptor, which I believe is at least supported on Linux (http://stackoverflow.com/a/17490185) and may also be supported elsewhere.
So my question is: Am I reading the code correctly if I see that the
MemoryMappedFile retains an open handle to its file descriptor after mapping? If so, is it possible to request a feature that exposes some way to close the open file handle, particularly from a