summaryrefslogtreecommitdiff
path: root/src/cnp.h
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-02-05 17:30:11 +0800
committerJSDurand <mmemmew@gmail.com>2022-02-05 17:30:11 +0800
commit510b10b96b546fcc6c6b6be85050305ddd192a41 (patch)
tree997d6c3f2c0a1ad6e27127d54a94655527e57864 /src/cnp.h
parent3fb5430080199a6d92a63f8259fe4a88df9b83ba (diff)
replace some hash table usage by tuples
Previously I used hash tables, which consume too much memory. Now the critical parts are replaced by a new hand-written library called "tuple.h". Now we can easily parse larger inputs. I haven't tested its limits, though.
Diffstat (limited to 'src/cnp.h')
-rw-r--r--src/cnp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cnp.h b/src/cnp.h
index 904e383..7d4a862 100644
--- a/src/cnp.h
+++ b/src/cnp.h
@@ -2,6 +2,7 @@
#define CNP_H
#include "str.h"
#include "utf8.h"
+#include "tuple.h"
#include "bsr.h"
#include "crf.h"