I bet the bottleneck is exactly at defer. Good news - it looks like go 1.8 will 
have much faster defer and, as a bonus,  faster cgo calls:
- https://github.com/golang/go/commit/f8b2314c563be4366f645536e8031a132cfdf3dd
- https://github.com/golang/go/commit/441502154fa5f78e93c9c7985fbea78a02c21f4f

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to