Subject: | File::Map and RAM disks. |
Date: | Wed, 11 Dec 2013 15:27:42 -0500 |
To: | bug-File-Map [...] rt.cpan.org |
From: | Andrew Smith <andrewksmith [...] gmail.com> |
Hi,
I've been using your module File::Map and it has been working well, but I
had a question and possible feature request. How would File::Map deal with
the case of a file to be mapped (using map_file) that is stored on a RAM
disk? On the surface this might seem funny --- if you have a RAM disk why
would you need to use File::Map, just use the RAM disk directly. But it
might still be nice to access the RAM disk via File::Map (i.e. same
interface no matter how/where the file is stored). So how would File::Map
handle this situation? Would it just remap the file again in memory, or is
it smart enough to know it is accessing a RAM disk and thus wouldn't remap?
If it doesn't know about RAM disks it might be nice to add this feature in
--- e.g. allow the user to specify that the file to be mapped is stored in
a RAM disk and then don't have File::Map map it into memory again.
thanks,
Andrew Smith