in reply to Re: Re: AutoMagic HTML
in thread AutoMagic HTML

* fastest * shortest * least memory consuming

Sorry, good point, I meant "fastest", as this rendering is supposed to happen on the fly as HTML is output to the browser.



“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
M-J D

Replies are listed 'Best First'.
Re: Re: Re: Re: AutoMagic HTML
by sgifford (Prior) on Jun 24, 2003 at 07:07 UTC
    Trying it a few different ways and testing it out with Benchmark is the best way to know for sure.

    My intuition is that you'll go faster with smaller "bites", since you'll be slinging less data around, so I would suspect that reading it in a line at a time, then using a special sub or state when you need multiline input, would be fastest. But that's just a guess...