Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory assignment improvements #72

Open
azumakuniyuki opened this issue Mar 8, 2025 · 0 comments
Open

Memory assignment improvements #72

azumakuniyuki opened this issue Mar 8, 2025 · 0 comments
Assignees
Labels
improvement Code improvements speed-up Performance Tuning

Comments

@azumakuniyuki
Copy link
Member

azumakuniyuki commented Mar 8, 2025

  • Use make()
    • v := make([]string, 0, 22)
    • w := make(map[string]string, 22)
  • Reduce string copies Reduce string copies 7e93 #76
    • Use []byte or []rune instead of a string as possible
    • Use strings.Builder for large string
@azumakuniyuki azumakuniyuki added improvement Code improvements speed-up Performance Tuning labels Mar 8, 2025
azumakuniyuki added a commit that referenced this issue Mar 8, 2025
azumakuniyuki added a commit that referenced this issue Mar 8, 2025
azumakuniyuki added a commit that referenced this issue Mar 9, 2025
azumakuniyuki added a commit that referenced this issue Mar 11, 2025
azumakuniyuki added a commit that referenced this issue Mar 11, 2025
@azumakuniyuki azumakuniyuki self-assigned this Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Code improvements speed-up Performance Tuning
Projects
None yet
Development

No branches or pull requests

1 participant