Adding advise( $s, 'sequential' ); made no difference :( - I mean, in terms of consumed memory.
| [reply] [d/l] |
:) the module seems vague on claims and evidence, but ,
I just did some testing, and I get these numbers just loading a 51mb file I create
You'll need memusage-workingset-virtualmemory.pl to run it yourself
So, when you map, seems to signal to the OS this is how big the memory usage is going to go (WVM field), and then the working set slowly increases up to the size of the file as the regular expression advances through the whole file "line" by line
Is this faster than something else? More memory efficien? I dunno
I'm beginning to suspect this is how File::Map is supposed to work
| [reply] [d/l] |
| [reply] |