From 092a83bbd7276f459cce2b6679ac4de44e48770d Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 31 Jan 2017 19:30:40 +0100 Subject: [PATCH] use unordered_map --- main.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index ce417e9..9440229 100644 --- a/main.cc +++ b/main.cc @@ -3,12 +3,12 @@ #include #include #include +#include #include #include #include #include -#include #include #include #include @@ -20,7 +20,6 @@ #include "tpool.hh" using ostd::ConstCharRange; -using ostd::Map; using ostd::slice_until; using cscript::CsState; @@ -292,7 +291,7 @@ struct ObState: CsState { Rule *rule; }; - Map> cache; + std::unordered_map> cache; struct RuleCounter { RuleCounter(): p_cond(), p_mtx(), p_counter(0), p_result(0) {}