Quote:
>Has anyone done any benchmarks for a perl built with the sfio library?
>As I understand it, the sfio (Safe/Fast I/O) library offers a considerable
>performance improvement over the stdio library. It includes a source code
>compatibility module to enable plug-in replacement. Has anyone tried it?
I tried it a while ago. The resulting perl failed one of the tests--
the io/pipe test--due to a difference in sfio's handling of EPIPE. I've
since received a change to sfio from the author, but haven't gotten a
chance to test it yet.
Other than the failed test, the resulting perl was barely faster, even
at io-intensive activities (my test program did a while(<>) on our
18-meg news history file). I suspect this is because the standard
perl will detect the most common stdio implementation and perform
several optimizations that require dereferencing FILE structs.
The configuration has to be hand-edited too, and I may have missed
something.
Taking another look at this is on my todo list.
--
University of Kentucky +1 606 257 2975
Department of Mathematics "Thanks to the magic of the slow-motion
camera, we can now show you how ugly the inside of someone's mouth can be."