in reply to Re^6: Speed reading (files)
in thread Speed reading (files)

As an aside to this conversation, sysread is noticeably faster than read, using my same simple test. The larger the file, the bigger the difference.
read 0.60891580581665 0.601351976394653 0.600950956344604 0.644972085952759 0.650673866271973 sysread 0.409609079360962 0.405777931213379 0.409843921661377 0.426880121231079 0.432134866714478

Replies are listed 'Best First'.
Re^8: Speed reading (files)
by BrowserUk (Patriarch) on Aug 05, 2005 at 14:58 UTC

    Is that with or without binmode or :raw applied?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
      Without binmode or raw - I just replaced "read" with "sysread" in the code.