Ticket #1802 (closed defect: wontfix)

Opened 3 years ago

Last modified 3 months ago

DiskFile and RAM usage

Reported by: gracinet Assigned to: fguillaume
Priority: P3 Milestone: CPS 3.5.0
Component: CPSSchemas Version: TRUNK
Severity: minor Keywords: DiskFile RAM
Cc:

Description

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).

Change History

12/21/09 11:11:48 changed by gracinet

  • status changed from new to closed.
  • resolution set to wontfix.

DiskFile is deprecated in favor of TramlineFile (CPSTramline) and later, I hope ZODB blobs.