You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Braden Shepherdson (JIRA)" <ji...@apache.org> on 2012/08/22 17:05:43 UTC

[jira] [Resolved] (CB-1250) Speed up fetching of contacts on Android

     [ https://issues.apache.org/jira/browse/CB-1250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Braden Shepherdson resolved CB-1250.
------------------------------------

    Resolution: Fixed

I submitted a change, which has been committed, to select only the columns we need. This has resulted, in my testing with 1400+ contacts, in a 4x speedup (from just over 40 seconds to just under 10 seconds).

It could still be better, but now around half the time is spent constructing JSON objects and shipping them through the bridge, which I can't see any way to streamline. The efforts to build a faster Android bridge should help this and any other operations with a large payload.
                
> Speed up fetching of contacts on Android
> ----------------------------------------
>
>                 Key: CB-1250
>                 URL: https://issues.apache.org/jira/browse/CB-1250
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Braden Shepherdson
>            Assignee: Braden Shepherdson
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> Fetching all contacts on Android takes a long time when the user has many contacts (I have ~1450 and it takes 20-30 seconds). The Contacts app can load in less than a second, so what are we doing that's causing it to slow down?
> As an alternative or additional enhancement, add "limit" and "offset" functionality to the ContactFindOptions, to retrieve smaller subsets of the contacts more quickly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira