Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^3: How smart is 'seek $fh, $pos, 0'?

by BrowserUk (Pope)
on May 27, 2015 at 15:20 UTC ( #1128021=note: print w/replies, xml ) Need Help??

in reply to Re^2: How smart is 'seek $fh, $pos, 0'?
in thread How smart is 'seek $fh, $pos, 0'?

Update: Interestingly, I'm getting 7, 8, 6, 12 with 1GB file, too.

Still probably too small to prevent the entire file being cached. (Unless you have less that about 2GB ram?)

Even so, I can't reason an explanation for why seek backwards relative would be faster than forwards.

If you have the ability to run that utility that traces system calls (strace?), that might reveal something.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
  • Comment on Re^3: How smart is 'seek $fh, $pos, 0'?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1128021]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2020-10-21 08:18 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (212 votes). Check out past polls.