diff options
author | 2013-10-18 10:43:16 -0700 | |
---|---|---|
committer | 2013-10-18 10:43:16 -0700 | |
commit | eec2383648324d386cbc9c18829993e1d8e0cc1f (patch) | |
tree | 221c408096c456e83203eb96e256ab007b41f0f9 /java/src | |
parent | 5f2d8ac386fc93635c269b6140904f8ce765991d (diff) | |
parent | 52f18d7f40de9b3afac089e441346fb465b5ab49 (diff) | |
download | latinime-eec2383648324d386cbc9c18829993e1d8e0cc1f.tar.gz latinime-eec2383648324d386cbc9c18829993e1d8e0cc1f.tar.xz latinime-eec2383648324d386cbc9c18829993e1d8e0cc1f.zip |
am 52f18d7f: Change the block sizes for SparseTables.
* commit '52f18d7f40de9b3afac089e441346fb465b5ab49':
Change the block sizes for SparseTables.
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/FormatSpec.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java b/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java index 6d5827023..b99aca2c8 100644 --- a/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java +++ b/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java @@ -278,9 +278,9 @@ public final class FormatSpec { static final int UNIGRAM_TIMESTAMP_SIZE = 4; // With the English main dictionary as of October 2013, the size of bigram address table is - // is 584KB with the block size being 4. - // This is 91% of that of full address table. - static final int BIGRAM_ADDRESS_TABLE_BLOCK_SIZE = 4; + // is 345KB with the block size being 16. + // This is 54% of that of full address table. + static final int BIGRAM_ADDRESS_TABLE_BLOCK_SIZE = 16; static final int BIGRAM_CONTENT_COUNT = 2; static final int BIGRAM_FREQ_CONTENT_INDEX = 0; static final int BIGRAM_TIMESTAMP_CONTENT_INDEX = 1; @@ -293,7 +293,7 @@ public final class FormatSpec { static final int SHORTCUT_CONTENT_COUNT = 1; static final int SHORTCUT_CONTENT_INDEX = 0; // With the English main dictionary as of October 2013, the size of shortcut address table is - // 29KB with the block size being 64. + // 26KB with the block size being 64. // This is only 4.4% of that of full address table. static final int SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE = 64; static final String SHORTCUT_CONTENT_ID = "_shortcut"; |