Reduce number of times data is copies when postMessaging |
||
Issue descriptionIdeally for every postMessage related API we'd just have 2 copies of the SSV data: a first copy directly from the SSV internal buffer into the IPC data stream, and a second copy directly from the incoming IPC data stream into SSVs internal buffer. With proper struct traits and updating all postMessage related mojo calls to use the MessagePortMessage mojo struct this should be fairly easy to achieve.
,
Jan 10 2018
Don't think there is much room for improvement left here. In-process MessagePort.postMessage will just serialize to SSV, and then deserialize from the same SSV instance, and cross process the SSV data is copied into the mojo messagepipe, and then out of it directly from/to the SSV. |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Oct 4 2017