On Tue, 6 Feb 2001 03:01:14 -0500, "Ron Bickers" <rbickers@logicetc.com> wrote:
More easily than I imagined, I modified the Photo product to use Image objects instead of string attributes to store the various display sizes. The result... my Zope process is now using ~15MB of memory instead of the 100+MB it used before. I guess I've answered my own question by example.
FYI, this change will give you an additional memory saving. Normally ZServer stores the whole response in memory for the duration of it being downloaded by the client. For a slow client this may be some time. However, the Image and File objects ensure that this is buffered on disk, by using RESPONSE.write and setting a Content-Length header. (the disk buffering only happens if the length is large) Toby Dickenson tdickenson@geminidataloggers.com