-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Charlie Clark wrote: > Am 09.02.2009 um 18:53 schrieb Tres Seaver: > >> This is talking directly to Zope (no Varnish / Squid in front?) >> Please >> post the PythonScript, too. > > Yep, this is a local wget talking directly to Zope. > > The PythonScript is: > > request = context.REQUEST > styles = [] > styles.append(getattr(context, > 'content_global.css').index_html(request, request.RESPONSE)) > styles.append(getattr(context, 'default.css').index_html(request, > request.RESPONSE)) > #... lots more file > > return "\n".join(styles) > > Now the profile results: > 1) View > 4499 function calls (4476 primitive calls) in 0.110 CPU seconds > > 2) PythonScript > 12830 function calls (12786 primitive calls) in 0.154 CPU seconds > > The 3:1 ratio is probably down to the way index_html works for the > files. > > So the PythonScript is more CPU intensive but also delivers faster. > Going on what you suggested yesterday I suspect the difference is down > to how the request is written to. I'll see if I can get something > working with that IFilestreamIterator you suggested.
You could try changing the view to call 'index_html' instead of '__str__', and see if that helps. If it does, then I think there must be a RAM cache in play somewhere. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJkYLJ+gerLs4ltQ4RAoyoAKDRBVwqzviiNT0W1l28290kE8cx+gCgh6xo HU3bZxYwmO9p44ZXWolrJiY= =NaD1 -----END PGP SIGNATURE----- _______________________________________________ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests