Commit graph

9 commits

Author SHA1 Message Date
Hiers
6fcd5489d5 Removed unnecessary mallocs.
The colored crate was being used for convinient coloring of the terminal
text, but after profiling I found it was responsible for almost 1/3 of
the memory allocations of the jisho searching feature.

Decided to write ANSI codes manually instead, along with using write! +
format_args! instead of format! for similar reasons, but not as
egregious.
2024-02-17 19:12:09 +00:00
Hiers
a475790e63 Only load the radkfile once per execution.
Before this, Yakudatsu would load and parse the whole file everytime you
used the kanji search.
2024-02-17 18:54:20 +00:00
Hiers
19929580da Final final changes before release. 2024-01-28 09:41:27 +00:00
Hiers
5f329ccab4 More Windows-specific fixes. 2023-12-19 13:08:06 +00:00
Hiers
86fed8b3d6 Moved error messages out of kanji_search.rs 2023-12-17 21:00:12 +00:00
Hiers
220a164c67 Cleanup. 2023-12-17 16:31:05 +00:00
Hiers
37e36db2a1 Fix program not exiting on EOF during some prompts 2023-12-16 11:44:37 +00:00
Hiers
5501c621c9 Split word search into its own file too. 2023-12-16 11:24:55 +00:00
Hiers
93576a3e34 Split kanji search by radical functions.
Put them in another file in preparation for adding sentence searching
which will add considerable complexity to the code.
2023-12-14 19:15:35 +00:00