Post a Comment On: /dev/dump

"SP (nanomsg) in Pure Go"

2 Comments -

1 – 2 of 2
Blogger aktau said...

Hey Garret! Interesting stuff, and already looks reasonably performant in many setups. I'm convinced it can get even better. Copying and buffer churn (gc pressure) are probably the things that kill performance and nothing else. Once that's done I expect that perhaps Go could one-up the C implementation on many-cores. Some of the things that popped up as ideas:

- Did you try gccgo (4.9 branch as that tracks Go 1.2, easy to install with homebrew)?
- In Go 1.3 there will be a generic Pool implementation, but the code can already be copied to 1.2, even though it's pretty unoptimized at the moment (as they say themselves). Perhaps that could help with the buffer churn or at the very least help prove that the buffer churn _is_ actually troublesome.
- Go actually provides some good profiling tools in the toolchain, could be handy for finding out where (if) the bottlenecks are.

Very cool project and implementation, keep it up!

B.t.w.: my twitter handle is @alazyleopard

March 27, 2014 at 12:57 AM

Blogger aktau said...

Hey Garret! Interesting stuff, and already looks reasonably performant in many setups. I'm convinced it can get even better. Copying and buffer churn (gc pressure) are probably the things that kill performance and nothing else. Once that's done I expect that perhaps Go could one-up the C implementation on many-cores. Some of the things that popped up as ideas:

- Did you try gccgo (4.9 branch as that tracks Go 1.2, easy to install with homebrew)?
- In Go 1.3 there will be a generic Pool implementation, but the code can already be copied to 1.2, even though it's pretty unoptimized at the moment (as they say themselves). Perhaps that could help with the buffer churn or at the very least help prove that the buffer churn _is_ actually troublesome.
- Go actually provides some good profiling tools in the toolchain, could be handy for finding out where (if) the bottlenecks are.

Very cool project and implementation, keep it up!

B.t.w.: my twitter handle is @alazyleopard

March 27, 2014 at 12:58 AM