Closed
Bug 1346446
Opened 8 years ago
Closed 3 years ago
Add DataPipe primitive to IPC
Categories
(Core :: IPC, enhancement, P3)
Core
IPC
Tracking
()
RESOLVED
FIXED
99 Branch
Tracking | Status | |
---|---|---|
firefox99 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: nika)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Mojo has a DataPipe primitive that uses shared memory for transferring large amount of data between processes. This would be useful functionality for us to have.
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Comment 1•7 years ago
|
||
As a reference here's the code for this in Mojo:
https://cs.chromium.org/chromium/src/mojo/edk/system/data_pipe_consumer_dispatcher.cc?sq=package:chromium&dr=CSs
https://cs.chromium.org/chromium/src/mojo/edk/system/data_pipe_producer_dispatcher.cc?sq=package:chromium&dr=CSs
https://cs.chromium.org/chromium/src/mojo/edk/system/data_pipe_control_message.cc?sq=package:chromium&dr=CSs
As I understand it basically has a shared memory ring buffer that data is copied into and out of and control with control messages that go over the usual ipc mechanism.
Assignee | ||
Comment 2•3 years ago
|
||
We have some active plans to implement a type like this sometime this year. Self-assigning to track the ongoing work I'm doing with this.
My current implementation uses the UniqueFunction
type being added in bug 1743020, so marking that as a blocker for now.
Assignee: nobody → nika
Blocks: 1748681
Assignee | ||
Comment 3•3 years ago
|
||
This is a high-level async pipe which can be cheaply transferred between
processes and uses a shared memory ring buffer as its implementation. This can
be used to efficiently stream non-message oriented data between processes and
is not bound to any particular protocol or thread.
Updated•3 years ago
|
Attachment #9257726 -
Attachment description: WIP: Bug 1346446 - Add a DataPipe shared memory pipe type, r=#ipc-reviewers → Bug 1346446 - Add a DataPipe shared memory pipe type, r=#ipc-reviewers
Pushed by nlayzell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/632a30d87d6b
Add a DataPipe shared memory pipe type, r=ipc-reviewers,handyman
Comment 5•3 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox99:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•