[Zope-CMF] Re: [dev] Document.get_size considered dumb

Tres Seaver tseaver at zope.com
Fri Sep 24 08:34:35 EDT 2004


Paul Winkler wrote:

> Not really objecting, but what's the motivation for changing it?
> performance?


A bug report from the Matt Hamilton at the Plone conference.  He had a 
folder with several hundred documents;  the 'folder_contents' view was 
ridiculously expensive, and his profile showed that most of the time was 
spent in 'get_size'.

The implementation is particularly silly because the 'folder_contents' 
view rounds the numbers to human-readable approximations.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com



More information about the Zope-CMF mailing list