From 7e7b112e6c00bcce0b339652748079cf7c9f1430 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 26 Apr 2014 15:17:07 +0200 Subject: Moved DomDocumentCache instances back into external function class * A global DomDocumentCache instance would require key prefixing * switched internal data structure to std::unordered_map for average constant time access --- src/support/dom/document_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/support/dom/document_cache.h') diff --git a/src/support/dom/document_cache.h b/src/support/dom/document_cache.h index 4447a18..287a316 100644 --- a/src/support/dom/document_cache.h +++ b/src/support/dom/document_cache.h @@ -1,7 +1,7 @@ #ifndef INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_H_ #define INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_H_ -#include +#include #include #include @@ -16,7 +16,7 @@ class DomDocumentCache { item* get(const std::string&); private: - std::map> map_; + std::unordered_map> map_; }; -- cgit v1.2.3