Skip to content

Avoid appending to string in loop, fixes lint error#570

Merged
phillip-stephens merged 1 commit into
mainfrom
phillip/lint
Nov 3, 2025
Merged

Avoid appending to string in loop, fixes lint error#570
phillip-stephens merged 1 commit into
mainfrom
phillip/lint

Conversation

@phillip-stephens
Copy link
Copy Markdown
Contributor

The linter we have added a new rule in their latest version.
Appending to strings in a loop causes a lot of memory allocations, we'll use a slice as an intermediary and then join to avoid this.

@phillip-stephens phillip-stephens requested a review from a team as a code owner November 3, 2025 21:42
@phillip-stephens phillip-stephens merged commit 266bfc4 into main Nov 3, 2025
3 checks passed
@phillip-stephens phillip-stephens deleted the phillip/lint branch November 3, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants