perf: 类私有名作用域容器改哈希表,点查由线性扫描改 O(1)

This commit is contained in:
2026-10-12 04:01:14 +00:00
parent 6b2bd6abb8
commit 26441edcbc
6 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -266,8 +266,8 @@ impl CompileCtx {
scopes: ScopeCtx {
symbols: SymbolTable::new(),
builtin_reg_map: Vec::new(),
private_name_map: Vec::new(),
private_element_kinds: Vec::new(),
private_name_map: HashMap::new(),
private_element_kinds: HashMap::new(),
private_brand_id: None,
next_private_name_id: 1,
},