From d685b6cce3cc351d48816d7bc982800c93b18d52 Mon Sep 17 00:00:00 2001 From: Mikhail Kornaukhov <66915223+mkornaukhov03@users.noreply.github.com> Date: Tue, 28 Nov 2023 22:27:52 +0300 Subject: [PATCH] Make global_vars hashtable bigger Doubled `global_vars` size of `global_vars` hashtable --- compiler/compiler-core.cpp | 2 +- compiler/compiler-core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/compiler-core.cpp b/compiler/compiler-core.cpp index 56757a3ee8..2be235feb0 100644 --- a/compiler/compiler-core.cpp +++ b/compiler/compiler-core.cpp @@ -465,7 +465,7 @@ VarPtr CompilerCore::create_var(const std::string &name, VarData::Type type) { VarPtr CompilerCore::get_global_var(const std::string &name, VarData::Type type, VertexPtr init_val, bool *is_new_inserted) { - TSHashTable::HTNode *node = global_vars_ht.at(vk::std_hash(name)); + auto *node = global_vars_ht.at(vk::std_hash(name)); VarPtr new_var; if (!node->data) { AutoLocker locker(node); diff --git a/compiler/compiler-core.h b/compiler/compiler-core.h index 697fd8322f..4ef7072f5a 100644 --- a/compiler/compiler-core.h +++ b/compiler/compiler-core.h @@ -33,7 +33,7 @@ class CompilerCore { TSHashTable functions_ht; TSHashTable classes_ht; TSHashTable defines_ht; - TSHashTable global_vars_ht; + TSHashTable global_vars_ht; TSHashTable libs_ht; TSHashTable modulites_ht; TSHashTable composer_json_ht;