diff options
author | 2013-06-04 19:16:47 +0900 | |
---|---|---|
committer | 2013-06-04 19:16:47 +0900 | |
commit | ad0c6d7b3635f0c1d92a3e4d895909234b7a2f0d (patch) | |
tree | 69b29880d640420fa6d1d3e2a646edd7e8f12890 /native/jni/src | |
parent | 11dc3a371d3bc682f7307586761ae637170d3505 (diff) | |
download | latinime-ad0c6d7b3635f0c1d92a3e4d895909234b7a2f0d.tar.gz latinime-ad0c6d7b3635f0c1d92a3e4d895909234b7a2f0d.tar.xz latinime-ad0c6d7b3635f0c1d92a3e4d895909234b7a2f0d.zip |
Cleanups in JNI related code
Removed the malloc version in binary dictionary support -- this has not
really been tested well so far, and the mmap version has been working pretty
well after all.
Several cosmetic fixes etc.
Change-Id: Iad0da58b300b769fb5946a3e73fc96f56215980e
Diffstat (limited to 'native/jni/src')
-rw-r--r-- | native/jni/src/defines.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h index ab326169d..e0edff584 100644 --- a/native/jni/src/defines.h +++ b/native/jni/src/defines.h @@ -264,11 +264,6 @@ static inline void prof_out(void) { // of the binary dictionary where a {key,value} string pair scheme is used. #define LARGEST_INT_DIGIT_COUNT 11 -// Define this to use mmap() for dictionary loading. Undefine to use malloc() instead of mmap(). -// We measured and compared performance of both, and found mmap() is fairly good in terms of -// loading time, and acceptable even for several initial lookups which involve page faults. -#define USE_MMAP_FOR_DICTIONARY - #define NOT_VALID_WORD (-99) #define NOT_A_CODE_POINT (-1) #define NOT_A_DISTANCE (-1) |