Avoid temporary String object creation in StreamMessageProducer#816
Conversation
b650ae6 to
446a98a
Compare
jonahgraham
left a comment
There was a problem hiding this comment.
LGTM - I have trouble imagining it will fully solving your OOM, but saving the 160M is definitely worthwhile.
I'll leave it open for now for others to have a look. But assuming no dissenting views it can be merged soonish.
|
No, it won't solve the issue but it allows for processing of larger messages without getting an OOM. |
Thanks to @pisv we have a positive review - even better than simply no dissenting views! Waiting to hear from @sebthom if this commit or #817 should be submitted first (as I assume some amount of merging conflict resolution may be required) |
Rebasing this PR is easier, so I would prefer if #817 gets merged first. |
This can reduce the likeliness of OOMs when dealing with large response messages from LS servers. See discussion at #815