mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Run GC when needed, instead of too late."
This commit is contained in:
commit
042a301f1c
@ -91,9 +91,9 @@ public class Ver4DictEncoder implements DictEncoder {
|
||||
for (final WeightedString word1 : word0.mBigrams) {
|
||||
binaryDict.addBigramWords(word0.mWord, word1.mWord, word1.mFrequency,
|
||||
0 /* timestamp */);
|
||||
}
|
||||
if (binaryDict.needsToRunGC(true /* mindsBlockByGC */)) {
|
||||
binaryDict.flushWithGC();
|
||||
if (binaryDict.needsToRunGC(true /* mindsBlockByGC */)) {
|
||||
binaryDict.flushWithGC();
|
||||
}
|
||||
}
|
||||
}
|
||||
binaryDict.flushWithGC();
|
||||
|
Loading…
Reference in New Issue
Block a user