[Tickets #5913] Re: Lower memory usage while downloading files
bugs at bugs.horde.org
bugs at bugs.horde.org
Sun Nov 25 23:02:27 UTC 2007
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=5913
-----------------------------------------------------------------------
Ticket | 5913
Updated By | Chuck Hagenbuch <chuck at horde.org>
Summary | Lower memory usage while downloading files
Queue | Gollem
Version | HEAD
Type | Enhancement
-State | New
+State | Feedback
Priority | 2. Medium
Owners |
-----------------------------------------------------------------------
Chuck Hagenbuch <chuck at horde.org> (2007-11-25 15:02) wrote:
>> I'm not sure what dynamically changing size would have to do with this.
>
> That was a comment on Chuck's remark about often not reading static
files.
I meant files on the local filesystem, vs. remote files, not
often-changing files.
> But, it's really not that hard (from my point of view). Right now,
> (it would appear anyhows) the entire file is read into memory, from
> whatever source (DB, ftp, smb, etc). Causing memory problems with
> large files.
> As opposed to reading the file into RAM, why not copy it to local
> disk and then sending it to the client in chuncks, saving heaps on
> memory.
As long as you can create that local copy without reading the file into
RAM in the first place, fine. Works for FTP, but SQL is much harder. Etc.
You won't get any argument that lower memory usage is better - but I think
you'll have a better appreciation for things if you _do_ look at the Gollem
and VFS code.
More information about the bugs
mailing list