From d89c60f49cf1eb2df3cc761b9790e6fc47cc7c96 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 14 Nov 2009 04:29:53 -0500 Subject: Memoize results from the fast predicate matcher This gains another 15% for the parser, again with a very simple change that has no impact if the fast predicate matcher fails to work. --- src/xact.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xact.h') diff --git a/src/xact.h b/src/xact.h index 07f9a6c7..c819b2a0 100644 --- a/src/xact.h +++ b/src/xact.h @@ -148,6 +148,8 @@ public: predicate_t predicate; bool try_quick_match; + std::map memoized_results; + auto_xact_t() : try_quick_match(true) { TRACE_CTOR(auto_xact_t, ""); } -- cgit v1.2.3