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.
|
|---|