Re: output buffering
| From: | Jade Nicoletti | Date: | Thu, 23 Nov 2000 18:10:18 +0000 |
| Subject: | Re: output buffering | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-39024@lists.php.net to get a copy of this message | ||
I'm a perfectionist ;) That's why. Only chunked buffering makes sense if
one uses it with a handler (performance wise).
-Jade.
On Tue, Nov 21, 2000 at 04:18:05PM +0200, Zeev Suraski wrote:
> You've made some pretty revolutionary changes to the output buffering
> code... The question is why :)
>
> Buffering blocks, and invoking handler functions every time the buffer gets
> full (instead of resizing it) makes sense, and is something I've been
> meaning to do at some point or another. But it really doesn't require the
> huge rewrite you've made...
>
> So, I go to back to the original question - why? :)
>
> Zeev
>
> At 16:03 21-11-00, Jade Nicoletti wrote:
> >I'm not happy with the output buffering as it is now. There should be a
> >possibilty to just buffer blockwise. I've tryed to implement it, but my
> >knowledge about zend internals/macros (at it's current stage) isn't
> >sufficient.
> >
> >I appended my work, so that you can look at it and if you think it's a good
> >thing, you can fix it and integrate it.
> >
> >I wannted to do my work on the output compression handler on better base,
> >that's way I've first tried to do this stuff.
> >
> >
> >Current handler API:
> > ob_start(string handler);
> > string handler(string entire_output);
> >Proposed new handler API:
> > ob_start(string handler [, int flags]); # flags: 1 -> blockwise..
> > string handler(string chunk [, int flags]); # flgs: 1 -> not
> > last chunk
> >
> >I hope you got it :)
> >
> >-Jade.
> >
> >PS: feel free to ask your questions :)
> >
> >--
> >===============================================================================
> > Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774
> > Geschäftsleitung Postfach 2519 Fax 01 240 4775
> > System-Administration 8021 Zürich
> >============================================[ Weitere Infos:
> >http://nns.ch/ ]==
> >
>
> --
> Zeev Suraski <zeev@zend.com>
> CTO, Zend Technologies Ltd. http://www.zend.com/
--
===============================================================================
Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774
Geschäftsleitung Postfach 2519 Fax 01 240 4775
System-Administration 8021 Zürich
============================================[ Weitere Infos: http://nns.ch/ ]==