diff options
author | Canop <cano.petrole@gmail.com> | 2019-02-13 18:14:49 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2019-02-13 18:14:49 +0100 |
commit | 19b9dfea20ae2702d2d83e8175b11e239686a4e0 (patch) | |
tree | e30f1ac5a8fbdbffb980d6fbee12a405ce1798b1 /src/browser_states.rs | |
parent | 384adc6aac5500826a271432a4469f65a9765aaf (diff) |
faster regex search
We were applying the same logic to fuzzy patterns and regex patterns:
looking for more results than strictly necessary in order to then
sort them and keep only the best ones.
But today, as there's no way to decide which regex match is better
than another one (because regexes don't try all the possible ways to
match), all results have the same score, so there's no need to look
for more results.
Diffstat (limited to 'src/browser_states.rs')
0 files changed, 0 insertions, 0 deletions