Skip to content

Concatenate strings directly instead of using fmt#46

Merged
SherClockHolmes merged 2 commits intoSherClockHolmes:masterfrom
Richtermeister:string-concat
Jan 1, 2025
Merged

Concatenate strings directly instead of using fmt#46
SherClockHolmes merged 2 commits intoSherClockHolmes:masterfrom
Richtermeister:string-concat

Conversation

@Richtermeister
Copy link
Contributor

This seems like a micro-optimization, but we are running this code in a tight loop and this saves 5 unnecessary allocations.

This reduces unnecessary allocations
slingamn added a commit to ergochat/webpush-go that referenced this pull request Dec 29, 2024
slingamn added a commit to ergochat/webpush-go that referenced this pull request Dec 31, 2024
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