Skip to content

Conversation

@strmfos
Copy link

@strmfos strmfos commented Nov 26, 2025

Use nil slice instead of make([]byte, 0) - they behave identically for append operations but nil avoids one heap
allocation per constructor call.

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