Descriptionruntime: speed up cgo calls
Allocate Defer on stack during cgo calls, as suggested
by dvyukov. Also includes some comment corrections.
benchmark old,ns/op new,ns/op
BenchmarkCgoCall 669 330
(Intel Xeon CPU 1.80GHz * 4, Linux 386)
Patch Set 1 #Patch Set 2 : diff -r a6bbe1b3fb7d https://go.googlecode.com/hg/ #Patch Set 3 : diff -r a6bbe1b3fb7d https://go.googlecode.com/hg/ #Patch Set 4 : diff -r a8d309fd526f https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 5 : diff -r 6e221e8adf96 https://go.googlecode.com/hg/ #
Total comments: 6
Patch Set 6 : diff -r 1ce42d48298d https://go.googlecode.com/hg/ #
MessagesTotal messages: 16
|