Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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

by BrowserUk (Pope)
on May 27, 2015 at 14:14 UTC ( #1128002=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'?

I'm getting 7, 8, 5, 12 on cygwin Perl 5.14.4, 25MB file.

I did it on an 8GB file to (attempt) to prevent caching mucking with the numbers.

And I'm sure that the values will vary depending upon the file (fragmented or not), device(disk/ssd/etc), version of perl, compiler/CRT, but the numbers are pretty consistent across all my devices and have been for several version of perl.

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://1128002]
and the web crawler heard nothing...

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

    Results (254 votes). Check out past polls.