Ticket #1802 (new defect)

Opened 3 years 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).