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

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

by MidLifeXis (Monsignor)
on May 27, 2015 at 14:20 UTC ( [id://1128004]=note: print w/replies, xml ) Need Help??


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

Win32 strawberry-perl 5.18.2.1 - machine uses SSD 10.0880000591278 11.9660680294037 4.43941283226013 9.69746780395508
v5.8.8 built for PA-RISC2.0 - older, sloooowwwweeerrr machine, NAS 53.091873884201 57.2255661487579 42.3175899982452 50.95623087883

--MidLifeXis

Replies are listed 'Best First'.
Re^3: How smart is 'seek $fh, $pos, 0'?
by BrowserUk (Patriarch) on May 27, 2015 at 14:35 UTC

    As your relative seek backwards is faster than the absolute seek forwards, I'm guessing that the file you used fitted entirely in cache.


    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

      Given the hardware, that is entirely possible.

      Update: 20GB file (machine has 16 GB memory). END_POINT is the end of the loop on the calculations.

      Using END_POINT => 20971520 24.7622640132904 29.1878440380096 29.0354490280151 43.3434360027313

      --MidLifeXis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-29 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found