Skip to content

v4.8.0

Choose a tag to compare

@mourner mourner released this 24 Nov 20:16
· 8 commits to main since this release
  • πŸš€ Indexing is 1.7–2.7Γ— faster for inputs with 8192+ items via radix sort (e.g. 1M items: 105 β†’ 44 ms, 100k: 9.1 β†’ 3.4 ms).
  • πŸš€ neighbors(x, y, 1) is ~25% faster (10k queries on 1M items: 30.5 β†’ 22.7 ms).
  • ✨ Added index.trim(), which shrinks the index to the number of items actually added. #72
  • 🐞 Fixed neighbors() breaking on indexes with more than ~252M items.
  • 🐞 Fixed neighbors() returning a stale item after a previous call's filterFn threw. #77 (thanks @fbirds5230)
  • 🐞 Fixed neighbors() with maxResults = 0 to return no results. #76 (thanks @RealBhupesh)