From 86b5ea6a058086216a38f1bfabb9b80b850094d1cb55503e455574085f8226dc Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 16 Sep 2025 21:25:39 -0400 Subject: [PATCH] Unordered map was slightly faster... --- js4g/StackMachine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js4g/StackMachine.h b/js4g/StackMachine.h index 5b77205..8036000 100644 --- a/js4g/StackMachine.h +++ b/js4g/StackMachine.h @@ -7,6 +7,7 @@ static_assert( __cplusplus >= 2023'02 ); #include #include +#include #include #include #include @@ -60,7 +61,7 @@ namespace Dillo::Hydrogen::JavaScriptForge ::detail:: StackMachine_m std::deque< std::string > wordNames; - std::map< std::string_view, std::deque< std::string > > words; + std::unordered_map< std::string_view, std::deque< std::string > > words; // Which side of the current conditional to take. enum ConditionalState { If, Else, Skipped };