Skip to content

Workhorse: reuse buffers in proxy

Mikhail Mazurskiy requested to merge ash2k/workhorse-buffer-reuse into master

What does this MR do and why?

This MR needs Workhorse: allow testify/assert (!137826 - merged) merged first.

I was browsing the profiler and noticed that Workhorse may make quite a few allocations for the reverse proxy buffer. It's not a lot of memory in absolute terms, but it's a 27% or memory use when not running heavy operations. It's straightforward to optimize this, so I did.

Screenshot_2023-11-24_at_10.55.50_am

Screenshots or screen recordings

N/A

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ash McKenzie

Merge request reports