[
https://issues.apache.org/jira/browse/CB-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Grieve resolved CB-1530.
-------------------------------
Resolution: Fixed
Fixed with refactoring as discussed on mailing-list.
commit:
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=6e6e0275add95a8caed647bdf862aded138bfecd
> Alleviate PluginManager.exec() performance concerns
> ---------------------------------------------------
>
> Key: CB-1530
> URL: https://issues.apache.org/jira/browse/CB-1530
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Android
> Affects Versions: Master
> Environment: Android
> Reporter: Curtiss Howard
> Assignee: Andrew Grieve
> Fix For: Master
>
>
> IPlugin and PluginManager use org.json.JSONArray for passing in plugin
> arguments. When a large JSON object is provided as an argument, performance
> is very poor as org.json is an eager, in-memory parser. Users should have the
> ability to bypass PluginManager's automatic JSONArray parsing and instead
> receive the raw JSON argument string so that a faster JSON library can be
> leveraged.
> The proposed patch includes an IRawPlugin interface containing an exec()
> method that takes the raw argument string instead of the pre-parsed one. Any
> plugin that wants to take advantage of this behavior needs to implement
> IRawPlugin, so current plugins aren't affected.
> There is a pull request with the proposed change at
> https://github.com/apache/incubator-cordova-android/pull/49
--
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: http://www.atlassian.com/software/jira