summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_large_table2_kyotodb.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-06-19 10:53:55 +0800
committerPeng Wu <alexepico@gmail.com>2017-06-19 11:16:17 +0800
commit5607752c2b989849923676f4a925e5315a3303d4 (patch)
treed25737cc780a8d0d2d8b90794044431a29281ca5 /src/storage/chewing_large_table2_kyotodb.cpp
parent071deb522f26534861c75897db80344f045b1db1 (diff)
downloadlibpinyin-5607752c2b989849923676f4a925e5315a3303d4.tar.gz
libpinyin-5607752c2b989849923676f4a925e5315a3303d4.tar.xz
libpinyin-5607752c2b989849923676f4a925e5315a3303d4.zip
not use in-memory DBM in src/storage
Diffstat (limited to 'src/storage/chewing_large_table2_kyotodb.cpp')
-rw-r--r--src/storage/chewing_large_table2_kyotodb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage/chewing_large_table2_kyotodb.cpp b/src/storage/chewing_large_table2_kyotodb.cpp
index b2bc9fc..f579aa3 100644
--- a/src/storage/chewing_large_table2_kyotodb.cpp
+++ b/src/storage/chewing_large_table2_kyotodb.cpp
@@ -63,6 +63,7 @@ bool ChewingLargeTable2::attach(const char * dbfile, guint32 flags) {
return m_db->open(dbfile, mode);
}
+#if 0
/* load/store method */
/* use in-memory DBM here, for better performance. */
bool ChewingLargeTable2::load_db(const char * filename) {
@@ -108,6 +109,7 @@ bool ChewingLargeTable2::store_db(const char * new_filename) {
return true;
}
+#endif
template<int phrase_length>
int ChewingLargeTable2::search_internal(/* in */ const ChewingKey index[],