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

Reduce allocations in consumers #6039

Merged
merged 3 commits into from
Oct 24, 2024
Merged

Reduce allocations in consumers #6039

merged 3 commits into from
Oct 24, 2024

Commits on Oct 24, 2024

  1. Pool JSApiConsumerGetNextRequest in nextReqFromMsg

    Otherwise a lot of allocations escape to the heap due to the `json.Unmarshal()`.
    
    Signed-off-by: Neil Twigg <[email protected]>
    neilalexander committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    7ab3b1e View commit details
    Browse the repository at this point in the history
  2. Recycle wait request if exceeded MaxWaiting

    Signed-off-by: Neil Twigg <[email protected]>
    neilalexander committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    b4c9d27 View commit details
    Browse the repository at this point in the history
  3. Reduce allocations with jsPubMsg message headers

    Signed-off-by: Neil Twigg <[email protected]>
    neilalexander committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    a0c41b4 View commit details
    Browse the repository at this point in the history