[Zope-dev] ZPT Optimization Opportunity

Fred Drake fdrake at gmail.com
Mon Sep 27 16:31:25 EDT 2004

On Mon, 27 Sep 2004 14:18:30 -0400, Tres Seaver <tseaver at zope.com> wrote:
> Transformation is already complete at that point.  The only difference
> is the type of the result returned (eventually) to the publisher.

Ok, that sounds good.

> BTW, I looked again at where StringIO is used, and it seems that ZPT
> constructs extra StringIO objects for (at least some) nested blocks.  In
> that case, we might be able to extend the win by having the "calling"
> bit use 'list.extend' for its own buflist, instead of calling 'getvalue'.

That shouldn't be hard to do neatly, and seems an easy win.


Fred L. Drake, Jr.    <fdrake at gmail.com>
Zope Corporation

More information about the Zope-Dev mailing list