diff options
author | 2012-06-14 11:25:50 -0700 | |
---|---|---|
committer | 2012-06-14 15:57:28 -0700 | |
commit | 1bc038c5e40bd0fa7a44331a569abe3ae88f0152 (patch) | |
tree | 112924a6267b25836b48c01f8cc10d0382f67cd3 /native/jni/src/dictionary.cpp | |
parent | 78573f2e8a7dbf67e16fa4dd531f33cba0df7ff5 (diff) | |
download | latinime-1bc038c5e40bd0fa7a44331a569abe3ae88f0152.tar.gz latinime-1bc038c5e40bd0fa7a44331a569abe3ae88f0152.tar.xz latinime-1bc038c5e40bd0fa7a44331a569abe3ae88f0152.zip |
Move correction state to stack memory
*Before
(0) 13.18 (0.01%)
(1) 93025.41 (62.06%)
(2) 10.75 (0.01%)
(3) 10.50 (0.01%)
(4) 117.50 (0.08%)
(5) 55678.98 (37.14%)
(6) 9.09 (0.01%)
(20) 883.84 (0.59%)
Total 149898.24 (sum of others 149749.25)
*After
(0) 17.41 (0.01%)
(1) 92673.41 (61.95%)
(2) 10.62 (0.01%)
(3) 10.37 (0.01%)
(4) 120.96 (0.08%)
(5) 55741.18 (37.26%)
(6) 11.01 (0.01%)
(20) 862.72 (0.58%)
Total 149595.52 (sum of others 149447.68)
Change-Id: Ia5a25a544fc388e4dab1e08d8f78d5117b249cf3
Diffstat (limited to 'native/jni/src/dictionary.cpp')
-rw-r--r-- | native/jni/src/dictionary.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/native/jni/src/dictionary.cpp b/native/jni/src/dictionary.cpp index 1fb02478b..5647a566d 100644 --- a/native/jni/src/dictionary.cpp +++ b/native/jni/src/dictionary.cpp @@ -38,7 +38,6 @@ Dictionary::Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust, AKLOGI("IN NATIVE SUGGEST Version: %d", (mDict[0] & 0xFF)); } } - mCorrection = new Correction(typedLetterMultiplier, fullWordMultiplier); mWordsPriorityQueuePool = new WordsPriorityQueuePool( maxWords, SUB_QUEUE_MAX_WORDS, maxWordLength); const unsigned int headerSize = BinaryFormat::getHeaderSize(mDict); @@ -49,7 +48,6 @@ Dictionary::Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust, } Dictionary::~Dictionary() { - delete mCorrection; delete mWordsPriorityQueuePool; delete mUnigramDictionary; delete mBigramDictionary; |