Unordered map was slightly faster...

This commit is contained in:
2025-09-16 21:25:39 -04:00
parent e1d86a737f
commit 86b5ea6a05

View File

@ -7,6 +7,7 @@ static_assert( __cplusplus >= 2023'02 );
#include <iostream>
#include <map>
#include <unordered_map>
#include <vector>
#include <string>
#include <variant>
@ -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 };