New issue
Advanced search Search tips

Issue 884810 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 888045



Sign in to add a comment

consider creating mojo::DataPipe for ReadableStream responses off the service worker thread

Project Member Reported by wanderview@chromium.org, Sep 17

Issue description

As discussed in  bug 884807  there is a path that currently creates a mojo::DataPipe on the service worker thread.  We might want to move this creation to a background task since creating the pipe involved synchronous I/O that can take milliseconds to complete.

While  bug 884807  is trying to reduce the number of paths that trigger the pipe creation, but there will always be some cases that need a pipe.  In those cases perhaps we could run a background task to create the pipe instead of doing it inline on the service worker thread.
 
Maybe a good place to start would be simply adding a histogram measuring how long it takes to create a mojo::DataPipe.  Possibly this could be bucketed by pipe size as well.
Status: Available (was: Untriaged)
(SW bug triage)
Blockedon: 888045

Sign in to add a comment