Switch to ankerl::unordered_dense

This commit is contained in:
Gleb Mazovetskiy
2024-08-04 11:11:43 +01:00
parent 01147410c1
commit e9c29fa806
20 changed files with 78 additions and 60 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
#include <optional>
#include <string_view>
#include <unordered_map>
#include <ankerl/unordered_dense.h>
#include <sol/sol.hpp>
#include <config.h>
@@ -30,7 +30,7 @@ namespace {
struct LuaState {
sol::state sol = {};
sol::table commonPackages = {};
std::unordered_map<std::string, sol::bytecode> compiledScripts = {};
ankerl::unordered_dense::segmented_map<std::string, sol::bytecode> compiledScripts = {};
sol::environment sandbox = {};
sol::table events = {};
};