perf(expressions): avoid cloning event data per evaluation (#4762)
## Description Avoid recursively cloning event data for every lifted expression evaluation. Each evaluation now copies only the root map for its expression-specific `vars`, while sharing the immutable normalized event data. Benchmark results for a prod representative 3.3 KB event: - 54.1% fewer bytes: 6,296 → 2,888 B/op - 34.2% faster: 5,316.6 → 3,499.4 ns/op - 19.3% fewer allocations: 109 → 88 allocs/op <!-- What changed? Include screenshots if you modify the UI. --> ## Release note <!-- User-facing release note. Use "None" if this does not need release notes. --> None. ## Migration note <!-- Upgrade, deployment, config, schema, or compatibility notes. Use "None" if none. --> None. *[Check our Pull Request Guidelines](https://github.com/inngest/inngest/blob/main/docs/PULL_REQUEST_GUIDELINES.md)*
R
Riadh committed
0284bbfad1a057da8ba004bacc83a1339c9f04d5
Parent: ce46357
Committed by GitHub <noreply@github.com>
on 8/21/2026, 2:13:16 PM