Description[Android] Cache injected Java objects' methods info on renderer side
Every invocation of Java method via an interface JS wrapper injected by Java bridge
is preceded by a call to GetNamedProperty. As method presence can't change
during Java object's lifetime, we should cache it on the renderer side, as every
IPC call to the browser side is super-expensive.
This optimization improves Cordova's "exec" benchmark speed by astonishing 60%, as
we shave off half of the IPC calls.
BUG=355644
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282345
Patch Set 1 #
Messages
Total messages: 7 (0 generated)
|