Skip to content

Commit 06bcb8c

Browse files
committed
refactor(vocabulary.h): align the size of DictEntry struct
This may reduce about 1% peak memory usage when compiling dict.
1 parent b05f11b commit 06bcb8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rime/dict/vocabulary.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ struct DictEntry {
3434
string text;
3535
string comment;
3636
string preedit;
37-
double weight = 0.0;
38-
int commit_count = 0;
3937
Code code; // multi-syllable code from prism
4038
string custom_code; // user defined code
39+
double weight = 0.0;
40+
int commit_count = 0;
4141
int remaining_code_length = 0;
4242

4343
DictEntry() = default;

0 commit comments

Comments
 (0)