-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 010
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
warning| Confidence:high| Auto-fix: ❌
String#+ in loop → String.build — Repeated String#+ creates new strings each iteration. Use String.build for efficient incremental building.
str = ""
10.times { str += "x" }Tip
This rule can significantly improve performance in hot code paths.
Note
See bench results at bench/cat-010/