pagefind icon indicating copy to clipboard operation
pagefind copied to clipboard

Make Pagefind available as a Rust library crate

Open holyjak opened this issue 9 months ago • 2 comments

Hello! I currently use the Node API to index custom files (EDN, in particular). It takes around 3 minutes to index 1100 files. I imagine that doing this in Rust would be much faster. Since pagefind is written in Rust, would you consider exposing a Rust API for custom indexing? Thank you!

holyjak avatar Oct 30 '23 08:10 holyjak

👋 Hey @holyjak

This is definitely something that could be exposed! 🙂

One note though — the 1.0.3 release does have a performance issue with the API indexing files. If you give 1.0.4-beta.0 an install you should see much-much-much better performance.

Sorry about that! I'll look at preparing a release soon.

bglw avatar Oct 30 '23 19:10 bglw

You were right, the 1.0.4 beta is done in 5 sec. Amazing!

holyjak avatar Nov 04 '23 17:11 holyjak