use unordered_map
parent
2e600aa91b
commit
092a83bbd7
5
main.cc
5
main.cc
|
@ -3,12 +3,12 @@
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
#include <ostd/types.hh>
|
#include <ostd/types.hh>
|
||||||
#include <ostd/vector.hh>
|
#include <ostd/vector.hh>
|
||||||
#include <ostd/functional.hh>
|
#include <ostd/functional.hh>
|
||||||
#include <ostd/string.hh>
|
#include <ostd/string.hh>
|
||||||
#include <ostd/map.hh>
|
|
||||||
#include <ostd/filesystem.hh>
|
#include <ostd/filesystem.hh>
|
||||||
#include <ostd/io.hh>
|
#include <ostd/io.hh>
|
||||||
#include <ostd/platform.hh>
|
#include <ostd/platform.hh>
|
||||||
|
@ -20,7 +20,6 @@
|
||||||
#include "tpool.hh"
|
#include "tpool.hh"
|
||||||
|
|
||||||
using ostd::ConstCharRange;
|
using ostd::ConstCharRange;
|
||||||
using ostd::Map;
|
|
||||||
using ostd::slice_until;
|
using ostd::slice_until;
|
||||||
|
|
||||||
using cscript::CsState;
|
using cscript::CsState;
|
||||||
|
@ -292,7 +291,7 @@ struct ObState: CsState {
|
||||||
Rule *rule;
|
Rule *rule;
|
||||||
};
|
};
|
||||||
|
|
||||||
Map<ConstCharRange, std::vector<SubRule>> cache;
|
std::unordered_map<ConstCharRange, std::vector<SubRule>> cache;
|
||||||
|
|
||||||
struct RuleCounter {
|
struct RuleCounter {
|
||||||
RuleCounter(): p_cond(), p_mtx(), p_counter(0), p_result(0) {}
|
RuleCounter(): p_cond(), p_mtx(), p_counter(0), p_result(0) {}
|
||||||
|
|
Loading…
Reference in New Issue