Commit 950cd99
perf: revert rootContext to val for performance optimization
Reverted rootContext back from a method to an immutable val in FeelEngine
to avoid repeated context creation on every evaluation invocation.
The mutable failureCollector is initialized on demand when merging the context.
Partly reverts 851a743
Reviewed-by: saig0
(cherry picked from commit 93dab53)1 parent ab62e71 commit 950cd99
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
| 334 | + | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
0 commit comments