I'm just wondering if your reply relates to my answer
also. I changed the sysread and sysseek calls to plain
read and seek (and removed that last seek), and benchmarked
my old and new versions, and got a huge performance hit
(~3 cycles/sec with sys* calls, ~1100 cps w/o sys).
Update: And I checked
clintp's answer with & w/o
sys* calls, and it was ~5 cps with and ~4 w/o.
This was all reading the last 400 lines from a 1000 line
file, 10 bytes/line.