Re: apache2filter efficiency
| From: | Jim Jagielski | Date: | Sat, 06 Apr 2002 12:56:56 +0000 |
| Subject: | Re: apache2filter efficiency | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82197@lists.php.net to get a copy of this message | ||
Aaron Bannert wrote:
>
> I think a good way to take advantage of the filter system would be
> to break the input stream into buckets of two types: constant strings
> and PHP script code. As flex/bison needs to be fed more data (from the
> yyinput function I think it's called) it could just read data out of
> buckets on the brigade. As it generates data, it could spit out buckets
> that are fed back into the brigade and passed downstream. The same
> would happen to the "constant string" data buckets: they could just
> be quickly passed down the filter chain.
>
> Is this feasible in the SAPI domain? I know very little about the
> SAPI, but will it allow me to override the equivalent of the yyinput
> function?
>
Cept because of the design of PHP/Zend, the entire file needs to be
slurped... think compiled instead of interpreted.
--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"A society that will trade a little liberty for a little order
will lose both and deserve neither" - T.Jefferson