performance.compute

Repeated expensive computation

Repeating the same expensive computation in one block should usually be cached.

#Metadata

#Why it matters

Recomputing the same serialization, key projection, or formatter construction wastes CPU and obscures intent.

#Remediation

Compute the value once, store it in a local binding, and reuse the cached result.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.performance.repeated-expensive-computation.rule.yaml.