Discussion Board

Results 1 to 9 of 9

Threaded View

  1. #1
    Registered User
    Join Date
    Feb 2013

    Unhappy O(c) way of finding a contact if contact ID is known using PIM API?

    Hi Experts,

    Is there a constant-time way to find a contact from the contact list using the PIM api if the contact ID is known? Finding a contact using ContactList::items(..) is slow as it seems that it would go to each contact in the contact list in order to find the correct contact even if I provided a filter with a contact containing the exact contact ID (I tested it on 400 contacts and the search did get painfully slow). I thought about building a search index in memory at startup but I'd like to avoid that as it might not scale well for a phonebook that has thousands of contacts without putting in tons of work

    Blackberry's PIM extension provides this mechanism that I am looking for: http://www.blackberry.com/developers...a.lang.String)

    Many thanks,
    Last edited by lordbritishix1982; 2013-08-22 at 18:47.

Similar Threads

  1. Replies: 0
    Last Post: 2009-10-09, 11:18
  2. Replies: 5
    Last Post: 2009-06-23, 12:43
  3. Replies: 3
    Last Post: 2008-12-10, 09:54
  4. Finding a Contact using a string of words
    By jp4symbian in forum Symbian
    Replies: 4
    Last Post: 2007-02-10, 10:40
  5. Replies: 3
    Last Post: 2006-10-09, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts