json - Performance issue in giving suggestions in AutoSuggestBox in C# -


i making application in c#, uses autosuggestbox. have json file in application, have deserialized list object. json file below.

{"_id":690856,"name":"tyuzler","country":"ua","coord":{"lon":34.083332,"lat":44.466667}} {"_id":464737,"name":"zaponor’ye","country":"ru","coord":{"lon":38.861942,"lat":55.639999}} {"_id":707716,"name":"il’ichëvka","country":"ua","coord":{"lon":34.383331,"lat":44.666668}} 

it has around 2,00,000 such rows.

this facing performance issue. since, has 2,00,000 rows, list object has 2,00,000 members.

when type letter in autosuggestbox, takes 15-20 seconds suggest something. repeats same after type next letter. so, how can make respond fast?

i have figured out problem. instead of parsing json file after app starts, parsing while app starts. helps in suggesting options after type letter in autosuggestbox.

since, parsing while app opens, app takes 2 seconds open. that's fine since json file big(almost 2,00,000 rows).