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

Is odict lightweight enough for mobile applications? #1012

Open
tinyc0der opened this issue Nov 19, 2024 · 4 comments
Open

Is odict lightweight enough for mobile applications? #1012

tinyc0der opened this issue Nov 19, 2024 · 4 comments

Comments

@tinyc0der
Copy link

I’m considering using odict in a flutter mobile application and want to ensure it is suitable for this case.

@Nickersoft
Copy link
Member

Hi @tinyc0der! It should be – most of the heavy features like search, tokenization, and more are all behind Rust feature flags, so you can just import the features you need. Without any enabled extra features, the core library is only 17 KB, so I can't imagine it would add much bloat at all to your app :)

@Nickersoft
Copy link
Member

Also, the first beta of v2.0 just landed on crates.io! https://crates.io/crates/odict

@tinyc0der
Copy link
Author

thanks for your info. However, i need typing suggestion (or prefix search). I'm afraid that tantivy is heavy for mobile device.

@Nickersoft
Copy link
Member

That's totally fair – I chose tantivy as it seems to be the most mature full-text solution for Rust. I wonder if there's any kind of middle ground that could be added as a feature, such as a lightweight prefix trie search. Under the hood Entries are just a hash map, so I imagine if you invoked the Rust SDK directly and wrote bindings for Flutter you'd be able to roll your own search functionality if you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants