Hancock, David (DHANCOCK) wrote:
Thanks for the ideas; I'll see if I can implement one or more (or get
somebody smarter than me at work to help me).
Regarding the 200:1 performance difference noted, I just checked again,
and got the same results. As Ian asked, I did a macros vs. no-macros
comparison, and use ApacheBench to test.
OK, so it really is the macro that's causing the problem. Or, rather,
the use of fetching a template through "here". I'm pretty sure this is
because ZPTComponent keeps track of used templates, and returns them to
the pool once the request is through -- but it only knows about the
templates that are directly created through the servlet, not indirect
ones, so things like standard_template.pt are never returned to the pool.
But I think I was just being too defensive with the pooling, I don't
think it's needed at all. I just committed changes to ZPTKit's trunk
(r2536) that reuse templates much more actively. I think I can actually
rip out large parts of templatetools and zptcomponent, but I just made
the minimal changes for now.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss