-
Notifications
You must be signed in to change notification settings - Fork 2.9k
nsqd: remove cached len buf optimization #1281
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
Conversation
nice catch... can probably verify with:
|
Thanks, that's probably the easiest way (but I added
It says "1009:6: moved to heap: arr" which doesn't look good ... |
some more detail:
(inlined |
I tried one more thing, and it seems like any kind of read demands a buffer on the heap.
so I guess I'll just close this. |
hah I guess this is actually supposed to work |
want to re-land this? |
after go 1.5.3 is released, I'll check again whether this works |
go-1.5.3 was released a while ago, I'll check this again soon ... |
which was added in 9dde14f in 2013 the 4 byte read buffer should be on the stack
welp,
|
which was added in 9dde14f in 2013
the 4 byte read buffer should be on the stack
@mreiferson I just happened to notice this while looking around ... I still need to come up with a good way of validating that this doesn't cause any additional allocations (but I would be surprised and disappointed if it did)