[Zope] Performance Testing / Expections

Itamar Shtull-Trauring itamars@ibm.net
Sun, 26 Mar 2000 16:09:31 +0200


Ben Leslie wrote:

> I guess how I would like to know if anyone out there knows how to improve
> this performance at all. Can I throw memory and processors at it and make
> it go away? Obviously there are some things in the highly dynamic bit
> which I will need to speed up, however how can I make just normal
> dtml execute faster? The prospect of ZEO has certainly helped in this
> area but surely I must be able to sqeeze some more performance out of this
> machine.

1. Generate Expires headers for your pages, and maybe handle
If-Modified-Since headers too (see OFS.Image.File for an example of the
latter.)  This lets the browser cache results of yor pages, which won't up
your requests-per-second but will reduce the number of requests you have to
handle.

2. Cache results of dynamic pages and then serve that up instead.  This can
speed things up by a factor of 5 for pages that are only a little dynamic.


I'll follow this up in a short while with an example of generating Expires
headers in DTML.

-- 
Itamar S.T.  itamars@ibm.net