in reply to Re^2: mmaping a large file
in thread mmaping a large file
Warning: I don't use *nix, so I cannot test anything I'm about to say.
The first thing I notice is that the POD for Sys::Mmap uses
new Mmap my $f, 8192, q(bigfile);
not
new Sys::Mmap my $f, 8192, q(bigfile);
I would have expected you to receive a compile-time error message from that, which suggests you aren't using strict/warnings. It might be a good idea to start.
The other thought is that mapping a 2GB file through a 8k window is going to involve a lot of shuffling.
|
|---|