Commander: make FuzzyFinder a class instead of a free function
Right now, this just caches the folded input string, but it's in anticipation of a new algorithm that will want to hold on to scratch space in between invocations. Why not just make one and pass it to all of the command sources: There's not *that* many sources, and it will complicate the interface. I'd rather revisit it later if it ends up being a problem than take on the extra complexity now. Doing it per source, OTOH, is a clear savings since some sources can have many candidates. Bug: 1014639 Change-Id: I85124976e50f0d0bcc33b307567738e97bee63d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575857Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Commit-Queue: Leonard Grey <lgrey@chromium.org> Cr-Commit-Position: refs/heads/master@{#834257}
Showing
Please register or sign in to comment