incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee Crossley (JIRA)" <>
Subject [jira] [Commented] (CB-638) Slow native bridge (especially android)
Date Fri, 04 May 2012 15:46:48 GMT


Lee Crossley commented on CB-638:

@Patrick - I agree that batching requests (such as file writes) would be faster, as you're
minimising the native callbacks but that is just sticking duck-tape on it and could lead to
other issues. I'm experiencing a 300+ms delay in small file writes on Android 2.3.5 - it's
less than a 10th of that on iOS. Using the WebView.addJavascriptInterface() API (optionally)
could be a great idea.

@Joe - Yes, seeing the source and having an independent party do some testing would be interesting,
I don't think that's going to happen with their commercial modelling :) My point wasn't really
that there's something faster, it's more than I'm experiencing poor performance on Android
devices, especially with earlier Android SDK versions (I'm experiencing a 300+ms delay in
small file writes on Android 2.3.5). It's less than a 10th of that on iOS and what I'm asking
is to see similar performance cross platform.
> Slow native bridge (especially android)
> ---------------------------------------
>                 Key: CB-638
>                 URL:
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Lee Crossley
> Doing many native callbacks (such as writing files) has a significant overhead.
>'s native bridge is more than 5 times faster than Cordova (on Android).
> I'd love to see similar performance stats in Cordova.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message