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/correction.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/correction.cpp')
-rw-r--r-- | native/jni/src/correction.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/native/jni/src/correction.cpp b/native/jni/src/correction.cpp index 6e7d2c807..827067b9f 100644 --- a/native/jni/src/correction.cpp +++ b/native/jni/src/correction.cpp @@ -106,11 +106,6 @@ inline bool Correction::isQuote(const unsigned short c) { // Correction // //////////////// -Correction::Correction(const int typedLetterMultiplier, const int fullWordMultiplier) - : TYPED_LETTER_MULTIPLIER(typedLetterMultiplier), FULL_WORD_MULTIPLIER(fullWordMultiplier) { - initEditDistance(mEditDistanceTable); -} - void Correction::resetCorrection() { mTotalTraverseCount = 0; } |