01-10-2012 05:50 AM
I am having Vector which has 5000 strings,When i type some thing in the editField,I should compare 5000 Sttring elements,and retreive it.How can i do it using RIM API's for bettter speed?
01-10-2012 06:46 AM
01-10-2012 06:54 AM
I agree with simon_hain on changing the data structure.
If you must use a Vector, consider using a SimpleSortingVector:
This way you will hold the data sorted and search will be done with O(logn) rather than O(n).
01-10-2012 07:08 AM