good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
« If you have a large dataset in a file: and a) only need access to small bits of it in any given run; b) you can find those bits without reading through the whole file from the beginning; then mapping can be an effective way on minimising the number of pages read from disk. »
yes, that's exactly the use case. I've just tried:
but now I get an error during cleaning: (in cleanup) munmap failed! errno 22 Invalid argument This is not going to be easy, is it? In reply to Re^2: mmaping a large file
by grondilu
|
|