On Fri, May 20, 2016 at 7:37 AM, Honza Bambas <hbam...@mozilla.com> wrote:
> And I do! :) Actually any parent necko channel, mainly HTTP, which sends > data to the child process. We also have bug 1110596 which complains about > too much memory copying in that code. > Could your IPCStream be used for that? > Yes, I think that could work in general. I think the main issue would be compat with existing nsIStreamListeners. These listeners might be written such that they expect the nsIInputStream passed in OnDataAvailable() to return their entire length from a single Available() call. This will not be true for a streamed pipe. I'll try to get some patches ready to test with in the next couple weeks and we can see. Worst case we could do the accumulation into a string in the child process to avoid spiking memory in the parent process. Ben _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform