eagleflo / jisho

Jisho is a CLI tool & Rust library that provides a Japanese-English dictionary.
GNU General Public License v3.0
13 stars 1 forks source link

Evaluate using a build script to create dictionaries at compile time #17

Closed eagleflo closed 3 years ago

eagleflo commented 3 years ago

Using jisho as a CLI tool still feels a bit too slow. All of the time is spent parsing the original JMdict XML file and creating the lookup HashMaps for jisho's own use.

It looks like most of this work could be moved to compile time with the aid of https://doc.rust-lang.org/cargo/reference/build-scripts.html.