[fetch] fetch() memory use proportional to amount downloaded (#33)

In Chrome Canary, if searching for a non-existent pattern via https://domenic.github.io/streams-demo/, memory usage increases from ~65MB to ~155MB (as measured by the Task Manager on OS X). That is, the Chrome process seems to grow by about 90MB for each 1000MB downloaded.

(Perhaps this is because the standard method of processing "infinite" streams via a recursive calls seems to require at least two (?) stack frames per read() chunk. Is there any TCO?)

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/33

Received on Wednesday, 1 April 2015 22:33:18 UTC