Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've also tried full-text-search in worker by pre-indexing the content, works very fast even with a JS engine - less than 5ms to make a search in 5MB of text.

It runs out of CPU-time at 6MB of index though.

There's someone that made a WASM for full-text search too, it's definitely faster and can handle quite a lot more text.

https://github.com/wilsonzlin/edgesearch



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: