From 23d652a3eb36d7278f98574d843119a124abff34 Mon Sep 17 00:00:00 2001 From: gwdwyy Date: Wed, 21 Aug 2013 17:17:03 +0800 Subject: [PATCH] use hash_map to improve speed but need more momenry --- src/globals.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/globals.h b/src/globals.h index 01d2ce6..c7a899e 100644 --- a/src/globals.h +++ b/src/globals.h @@ -10,17 +10,21 @@ #include #include #include +#include +//#include namespace CppJieba { using namespace std; + using __gnu_cxx::hash_map; + //using namespace stdext; //typedefs typedef unsigned int uint; typedef std::vector::iterator VSI; typedef std::vector VUINT16; typedef std::vector::const_iterator VUINT16_CONST_ITER; - typedef map TrieNodeMap; + typedef hash_map TrieNodeMap; }