Is odict lightweight enough for mobile applications?
Iām considering using odict in a flutter mobile application and want to ensure it is suitable for this case.
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 :)
Also, the first beta of v2.0 just landed on crates.io! https://crates.io/crates/odict
thanks for your info. However, i need typing suggestion (or prefix search). I'm afraid that tantivy is heavy for mobile device.
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.