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

Change argument to pointer-like to avoid allocations for fnc BackHeader #752

Closed
victory460 opened this issue Dec 6, 2021 · 0 comments · Fixed by #753
Closed

Change argument to pointer-like to avoid allocations for fnc BackHeader #752

victory460 opened this issue Dec 6, 2021 · 0 comments · Fixed by #753
Labels
enhancement New feature or request

Comments

@victory460
Copy link
Contributor

  1. Please describe the issue you observed:
    Change argument to pointer-like to avoid allocations:

    func BackHeader(d []byte) {
    headerPool.Put(d)
    }

  2. Please tell us about your environment:

    • Linux

    • Go SDK branch: master

    • RocketMQ 4.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants