New issue
Advanced search Search tips

Issue 704574 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Nov 15
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 715175



Sign in to add a comment

An idea for in-process optimization: skip validation for same-process messages

Project Member Reported by yzshen@chromium.org, Mar 23 2017

Issue description

According to some perf tests, validation takes up ~1/3 of the deserialization time. It would be nice to avoid that when possible.

EDK knows whether a message is from the same process or not. One idea is to add an output parameter "bool* from_same_process" to MojoReadMessage(), then the bindings can choose to skip validation if the message is from the same process.



WDYT? 
 

Comment 1 by yzshen@chromium.org, Apr 25 2017

Blocking: 715175
Cc: -roc...@chromium.org rockot@google.com
Status: Fixed (was: Untriaged)
In cases where bindings performance is critical, we can now pay some extra code size cost and turn on lazy serialization. I think that sufficiently addresses this.

Sign in to add a comment