The vector it checks inside looks something like this:
Code: Select all
std::vector<std::vector<std::unordered_map<std::string, std::variant<std::string, std::vector<std::string>>>>>
This causes the wxTextCtrl to lag when I put text inside (it waits till all the loops are finished to display the text inside the wxTextCtrl), I want the wxTextCtrl to ignore whether or not the for loops are finished. Like in Google where you can type as fast as you want with no display and the autocomplete results try to "catch up" and guess what you're looking for and not the other way around.
One way I can think of doing this is stopping the search and restarting it if a new text or character is typed (right now it waits to process every stroke typed till all the for loops have finished and then process any new keystrokes), I don't know how to do this though. This might be a bit tough so any help is nice.