askorama / orama

🌌 Fast, dependency-free, full-text and vector search engine with typo tolerance, filters, facets, stemming, and more. Works with any JavaScript runtime, browser, server, service!
https://docs.askorama.ai
Other
8.27k stars 273 forks source link

Better normalization cache #738

Open masylum opened 1 week ago

masylum commented 1 week ago

They key seems to be too specific. Specially by using the prop, which basically makes it redudant to cache tokens that are found in different props. The goal of that cache seems to be to trade memory for time, but right now seems to be storing equal computations in different keys which basically is inefficient. The only thing that the prop is needed for is the stemmerSkipProperties.

vercel[bot] commented 1 week ago

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

Name Status Preview Comments Updated (UTC)
orama-docs 🛑 Canceled (Inspect) Jun 17, 2024 10:23am
micheleriva commented 1 day ago

Hi there! Thank you so much for your PR. Were you able to run the tests locally?