I have about 500 text files (around 6 MB overall) i need to use as resources in my windows phone application.
My application is searching for a string given by the user in the resources and returns the files containing the string to be displayed to the user.
I´m looking for the right way to do this kind of search, i have 3 ideas:
- Iterate the files on every search, use String.Contains to find the given string.
- Pre-load the files to the memory, iterate them on every search (it is in memory but takes around 6 MB).
- Use some kind of a local document db (any ideas?) to index the files for a textual search.