An idea for in-process optimization: skip validation for same-process messages |
|||
Issue descriptionAccording 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?
,
Oct 17
,
Nov 15
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 |
|||
Comment 1 by yzshen@chromium.org
, Apr 25 2017