Skip to content

lint: Fix errors reported by perfsprint: concat-loop#16857

Merged
tomponline merged 10 commits intocanonical:mainfrom
markylaing:perfsprint-concat-loop
Oct 30, 2025
Merged

lint: Fix errors reported by perfsprint: concat-loop#16857
tomponline merged 10 commits intocanonical:mainfrom
markylaing:perfsprint-concat-loop

Conversation

@markylaing
Copy link
Copy Markdown
Contributor

These are such micro-optimisations that I was tempted to just turn the rule off - but it's good to keep it on so that we write more efficient code in future.

The fixes aren't the most efficient that they could possibly be, as there are a lot of unnecessary fmt.Sprintf's remaining.

@tomponline
Copy link
Copy Markdown
Member

@markylaing looks like you've lost some implicit type String() conversion when switching away from fmt.Sprintf(), tests failing.

@tomponline tomponline marked this pull request as draft October 30, 2025 14:08
@markylaing
Copy link
Copy Markdown
Contributor Author

Wowzer the tests really blew up!

@markylaing markylaing force-pushed the perfsprint-concat-loop branch from 9a767b1 to 972d6b9 Compare October 30, 2025 16:50
@markylaing
Copy link
Copy Markdown
Contributor Author

The CLA check is now failing 🤦 Other tests should pass now 🤞

@simondeziel
Copy link
Copy Markdown
Member

The CLA check is now failing 🤦 Other tests should pass now 🤞

All green now. @markylaing OK to mark as ready for review?

@tomponline tomponline marked this pull request as ready for review October 30, 2025 22:27
Copy link
Copy Markdown
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ta!

@tomponline tomponline merged commit 34da7b2 into canonical:main Oct 30, 2025
132 of 138 checks passed
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.

4 participants