You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid ImmutableSet.copyOf in ForTag deferred node counting
ForTag was calling getDeferredNodes() which creates an ImmutableSet copy
on every iteration just to count non-expression nodes. Added a dedicated
countNonExpressionDeferredNodes() method on Context that streams over the
backing set directly, avoiding the copy.
Benchmark: +66% throughput on complexTemplateBenchmark (3,316 -> 5,495 ops/s)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments