-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
(e-mail address removed) (David Morel) wrote in
seek FILEHANDLE,POSITION,WHENCE
How fast is seek?
I am using the seek function on some large files, for simplicity. Are
there any benchmarks on the speed of this function (WHENCE = 0)?
In my experience (unix), seek just modifies an internal counter and an
internal flag, and doesn't touch the file at all. So it has next to zero
execution time. If a filehandle is open for write, it may or may not need
to do a flush before the seek, so that may slow down certain seeks.
What's your real question?
- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBP29R0GPeouIeTNHoEQK07QCdEBiUoCy2IXnzoV48fRK/9/v5pjYAoKTO
K0ZGMnmhbNQ76NgSgZzYmDmm
=67RF
-----END PGP SIGNATURE-----