Feat: script execution performance optimization

This commit is contained in:
2026-02-22 14:16:38 +01:00
parent 3d552ec072
commit 81f475a75b
20 changed files with 377 additions and 134 deletions

View File

@@ -12,7 +12,7 @@ fn fetch_nonexistent() {
#[test]
fn persistence_across_evals() {
let f = forth();
let mut f = forth();
let ctx = default_ctx();
f.evaluate(r#"10 !counter"#, &ctx).unwrap();
f.clear_stack();
@@ -50,7 +50,7 @@ fn set_keep() {
#[test]
fn set_keep_stores() {
let f = forth();
let mut f = forth();
let ctx = default_ctx();
f.evaluate(r#"42 ,x"#, &ctx).unwrap();
f.clear_stack();
@@ -60,7 +60,7 @@ fn set_keep_stores() {
#[test]
fn set_keep_chain() {
let f = forth();
let mut f = forth();
let ctx = default_ctx();
f.evaluate(r#"10 ,a ,b"#, &ctx).unwrap();
f.clear_stack();