Refactor: Use root_purity instead of global_purity

This commit refactors the purity analysis from using a
`HashMap<GlobalIdx, Purity>` to a `Vec<Purity>` indexed by
`GlobalIdx.0`.

This change simplifies the data structure and makes purity lookups more
efficient. The `Binder`'s `globals` field has also been removed as it
was not being used.
This commit is contained in:
Michael Schimmel
2026-03-12 16:57:06 +01:00
parent dcb7685d29
commit bf86c76bb6
8 changed files with 123 additions and 131 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ pub fn register(env: &Environment) {
// (create-ticker condition-closure) -> StreamNode
let ticker_generators = env.pipeline_generators.clone();
let globals = env.global_values.clone();
let globals = env.root_values.clone();
env.register_native_fn(
"create-ticker",