I'm trying to create a search function in an app.
I am wondering if I should use SearchValues for text-based filters.
For example, I would have a 'name' and 'description' filter, which check if the name or description of an item contain a set of strings.
I looked at the code for SearchValues, and it seems to use aho-corasick by default, which should be fairly expensive to construct.
As my filters are expected to update fairly regularly (everytime a user types a new letter), and the filters only operate on all elements once, I'm wondering if it's even worthwhile to use SearchValues here