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
[SR-10028] one single 'handler as? _ChannelOutboundHandler' allocates 144 times, every time it's executed #52431
Comments
tried this on a few Swift 5 versions, same everywhere, most recent one I tested:
|
I'm already working on this. It's easily fixable |
Thanks so much Erik! I’ll check out Monday’s snapshot build and report back . |
I can verify this as fixed. SwiftNIO's test now do 600 fewer allocations per connection pair (http client and http server) with identical code. Thanks very much @eeckstein after
before
|
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attachment: Download
Additional Detail from JIRA
md5: 409597107c76088922e596aa9ce933ea
relates to:
Issue Description:
I've got this simple program using NIO
with our new HTTP parser which uses conditional conformances. I wouldn't expect this program to allocate at all in the loop because the only thing executed is
but in actual fact, it allocates 144❗ times per execution of the loop.
Repro:
download the attached
repro.tar.gz
unpack
run
output:
The text was updated successfully, but these errors were encountered: