ad1992 / fuzzify

A tiny lightweight library for Fuzzy Search
https://fuzzify.vercel.app
MIT License
88 stars 5 forks source link

perf: set max distance based on length of string and skip if distance exceeds #1

Closed ad1992 closed 4 months ago

ad1992 commented 4 months ago

Setting the max Levenshtein distance based on length of the string and omit the strings which exceed the distance in order to show relevant matches.

Before - query: kind

Screenshot 2024-07-26 at 1 50 00 PM

Now

Screenshot 2024-07-26 at 1 49 43 PM
vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuzzify ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2024 8:12am