Android Question SearchView Class - taking too long for indexing.

u2005k

Member
Licensed User
Longtime User
Hi,

I am trying to use SearchView class, file I am loading is > 2MB and has nearly 100K lines (one item/line). It is working, that is search is quite good however it takes too long to build the index. I don't want to show items with matching string anywhere but only in the beginning. Is there any way I can speed up indexing part of the class? It takes nearly 5 minutes to index the data file.

Thanks & regards...

U2005K
 

Gennysama

Member
Licensed User
Longtime User
You can order the large files in alphabetical order and create a file for each letter.
Then, in Sub edittext1_TextChanged (Old As String, New As String)
end Sub
Recognize the first letter and according to that you choose one of the files cut off. +

PS. I'm using google translate, I hope you understand.
 
Upvote 0
Top