[Webkit-unassigned] [Bug 46746] Large files via XHR : out-of-memory crashes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 20 04:37:38 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=46746





--- Comment #7 from Janne Koskinen <koshuin at gmail.com>  2011-01-20 04:37:37 PST ---
After changing the responseText function to call CollectAllGarbage() we have a new issue. Due to massive allocation and deallocation during download causes the downloading to take long time. example here is 25MB file takes ~1h to complete and as added bonus heap gets completely trashed. So that is a no go.

Few Ideas:

1. Each instance of responseText would differ only by string lenght unless detached.
JSString associated with the downloaded content would be stored in single location.

2. responseText is null unless data is referenced
We would only update the length of the object but not allocate the string unless needed. The advantage over 1. is we can have larger downloads.

3. all JSStrings would be null unless used i.e. lazy allocation of all strings.
Would be fun to test :) Maybe such feature exists and I'm not aware of it?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list