Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexation is pretty slow #340

Open
setop opened this issue Jan 31, 2023 · 1 comment
Open

indexation is pretty slow #340

setop opened this issue Jan 31, 2023 · 1 comment
Labels
improvement-request Request for new or enhanced behavior. investigating A change request that's blocked on investigation, understanding, or implementation.

Comments

@setop
Copy link

setop commented Jan 31, 2023

I built an index of 27k entries that are short sentences (nine English words average).

The search is pretty quick : 300ms in CLI, 600ms in the browser.

But building the index has been very long : 15 minutes on a core i7 CPU. Means 30 entries / seconds.

I've been doing the same exercise with other search engine also written is Rust and it was running at 2700 entries / seconds.

Any idea of what cost so much ? Any ways to optimize it ?

@jameslittle230
Copy link
Owner

Hi! I'm sure there are optimizations that could be made to the indexer, but I haven't spent much time optimizing the indexer itself (or investigating what could be optimized) -- I've instead focused more on build artifact size and search speed.

I'll leave this issue open for a bit to see if any optimization ideas crop up.

-James

@jameslittle230 jameslittle230 added improvement-request Request for new or enhanced behavior. tracking A change request that's blocked on something external. investigating A change request that's blocked on investigation, understanding, or implementation. and removed tracking A change request that's blocked on something external. labels Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement-request Request for new or enhanced behavior. investigating A change request that's blocked on investigation, understanding, or implementation.
Projects
None yet
Development

No branches or pull requests

2 participants