cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kemp <>
Subject Android Bridge performance
Date Mon, 29 Jul 2013 15:36:55 GMT
I have been doing some testing on the bridge to see how the current
implementation stands up.

For large data going to native, the highest single time impact is the
conversion of the string rawArgs to a JSONArray.

Currently Echo, FileUtils, FileTransfer are likely to be impacted by this.

The plugin execute is called by the bridge with String rawArgs, and the
signature of these plugins (and others) calls for JSONArray args. This
causes a non-obvious invocation of JSONArray(string) that isn't
particularly fast.

Testing on a Nexus 7
for a 1MB echo call (total round trip 580ms)
58% - conversion from json string to JSONArray (in Native)
28% - js preparation (Process any ArrayBuffers in the args into a string.)

more to follow...

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message