mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 11:11:11 +08:00
perf: 类私有名作用域容器改哈希表,点查由线性扫描改 O(1)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user