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

Paul Winkler pw_lists at slinkp.com
Fri Sep 24 12:58:43 EDT 2004


On Fri, Sep 24, 2004 at 08:34:35AM -0400, Tres Seaver wrote:
> 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.

That certainly does sound dumb :-)
+1.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope-CMF mailing list