in reply to Re: How smart is 'seek $fh, $pos, 0'?in thread How smart is 'seek $fh, $pos, 0'?
Win32 strawberry-perl 220.127.116.11 - machine uses SSD
v5.8.8 built for PA-RISC2.0 - older, sloooowwwweeerrr machine, NAS
As your relative seek backwards is faster than the absolute seek forwards, I'm guessing that the file you used fitted entirely in cache.
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
PerlMonks, of course - how could you ask?
Games & puzzles
Arts & music
Whichever pays my bills
Results (210 votes). Check out past polls.