Skip to content

Commit

Permalink
refactor(vocabulary.h): align the size of DictEntry struct
Browse files Browse the repository at this point in the history
This may reduce about 1% peak memory usage when compiling dict.
  • Loading branch information
WhiredPlanck committed Jun 10, 2023
1 parent b05f11b commit 06bcb8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rime/dict/vocabulary.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ struct DictEntry {
string text;
string comment;
string preedit;
double weight = 0.0;
int commit_count = 0;
Code code; // multi-syllable code from prism
string custom_code; // user defined code
double weight = 0.0;
int commit_count = 0;
int remaining_code_length = 0;

DictEntry() = default;
Expand Down

0 comments on commit 06bcb8c

Please sign in to comment.