Replies: 3 comments 1 reply
-
There is an open source application called "Toolbox". On GTR 4 it opens 70kB text files, I just haven't checked more than that. See how it does it, maybe it will help. |
Beta Was this translation helpful? Give feedback.
-
I solved my problem by making json files into js files and just importing them. But the question is still relevant. |
Beta Was this translation helpful? Give feedback.
-
Sounds like an information retrieval problem. Are you searching for keywords that appear in an array of strings? How large are the strings and how many keywords are you looking for? Could be possible for a tf-idf approach. If it's a substring search, something similar to a Boyer Moore Algorithm can work and will have an Θ(n+m) time complexity. |
Beta Was this translation helpful? Give feedback.
-
I need to search by a set of keywords for a string in an array of 20-30 thousand elements.
For optimization I assigned an id to each word.
An attempt to save the file on the watch was unsuccessful. They can't open a file whose size is more than 50kb +-
Then I decided to try Messaging API, but I didn't find any possibility to read files through it.
The last option was Fetch API, but using it will make the application dependent on the Internet. This is bad.
Beta Was this translation helpful? Give feedback.
All reactions