feat: lots of optimization

* allocate vm stack on the stack
* use Rc instead of Arc
* optimize recursive attribute set
This commit is contained in:
2025-05-11 12:57:29 +08:00
parent 07b486848f
commit 05e82d4021
12 changed files with 137 additions and 111 deletions

View File

@@ -3,7 +3,7 @@ extern crate test;
use test::{Bencher, black_box};
use ecow::EcoString;
use rpds::{ht_map_sync, vector_sync};
use rpds::{ht_map, vector_sync};
use crate::compile::compile;
use crate::ir::downgrade;
@@ -64,7 +64,7 @@ macro_rules! list {
macro_rules! attrs {
($($x:tt)*) => (
Value::AttrSet(AttrSet::new(ht_map_sync!{$($x)*}))
Value::AttrSet(AttrSet::new(ht_map!{$($x)*}))
)
}