in reply to Re: Re (tilly) 1: XML::SAX::PurePerl Performance
in thread XML::SAX::PurePerl Performance
Speaking of functions, I am kind of wondering what the purpose of next is. It seems from the code I see in it that it was intended to keep track of things like line numbers. But I don't see the rest of the code that would be needed to do that. (Sign of a change in design?) If that is the case, then what next is really providing is buffering.
But isn't buffering exactly what read is supposed to do for you? OK, its speed is highly platform (and compilation option) dependent. But it seems to me that either you are better off using read, or else next should remove the additional buffering by using sysread.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 3: XML::SAX::PurePerl Performance
by Matts (Deacon) on Feb 06, 2002 at 14:06 UTC | |
by tilly (Archbishop) on Feb 06, 2002 at 21:08 UTC |