[Nuxeo-tickets] [Nuxeo Repository] #1802: DiskFile and RAM usage

Nuxeo Repository trac at nuxeo.com
Thu Dec 28 17:26:04 CET 2006


#1802: DiskFile and RAM usage
------------------------+---------------------------------------------------
 Reporter:  gracinet    |       Owner:  fguillaume  
     Type:  defect      |      Status:  new         
 Priority:  P3          |   Milestone:  CPS 3.4.4   
Component:  CPSSchemas  |     Version:  TRUNK       
 Severity:  minor       |    Keywords:  DiskFile RAM
------------------------+---------------------------------------------------
 While working on #1801, I noticed that way too much goes through Zope's
 RAM (if I got it right, of course):

   * a cut/copy/paste loads the file contents in memory. What happens for a
 folder holding hundreds of 10 MB files ?
   * before going to disk, the whole file is loaded in RAM. This can't work
 for really large files.

 One more thing: __str__ dumps the contents ! I didn't dare changing that,
 but I saw str(obj) being called in transaction/ZODB layers (for logging
 purposes, I think).

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1802>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.