- From: Adam Rice <notifications@github.com>
- Date: Tue, 21 Jul 2020 08:38:39 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 21 July 2020 15:38:52 UTC
> I wonder if there would be a way to get to a JS GC free + zero copy way of downloading files? At least in Chrome, our goal is not to eliminate GC but to use generational GC so that as long as there is only a small number of short-lived objects generated, you won't see any GC pauses. You can track the progress of this effort here: https://bugs.chromium.org/p/chromium/issues/detail?id=1029379. The streams standard creates lots of short-lived promises internally. It's theoretically possible to eliminate those promises for platform-generated streams, but in practice we don't because it would add a lot of complexity to the implementation. Instead we rely on the lower-level GC to be efficient. I don't know about other browsers, but I suspect they are also working on ways of letting JavaScript interface with WebAssembly while avoiding GC pauses from temporary objects. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/1057#issuecomment-661936197
Received on Tuesday, 21 July 2020 15:38:52 UTC