incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <>
Subject [jira] [Commented] (CB-638) Slow native bridge (especially android)
Date Thu, 13 Sep 2012 22:43:08 GMT


Andrew Grieve commented on CB-638:

After a bike ride and a shower, I have a good guess as to what's going on :)

I think it's a race condition. 

#Thread 1 - exec called and starts echo on thread 2
#Thread 2 - thread runs and pushes the result on the queue
#Thread 1 - returns from exec to find message on the queue
#Thread 1 - returns the result to the prompt() call.

I'm not really sure how to easily add a flag to avoid this optimization given the current
structure of the code. Maybe have pluginManager.exec return a boolean indicating async vs
sync. Or just don't worry about it :P
> Slow native bridge (especially android)
> ---------------------------------------
>                 Key: CB-638
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Lee Crossley
>            Assignee: Andrew Grieve
>            Priority: Critical
>              Labels: 2.1.0
>             Fix For: 2.2.0
> 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
For more information on JIRA, see:

View raw message