1
0
mirror of https://github.com/golang/go synced 2024-11-12 02:10:21 -07:00
go/misc/cgo
Alex Brainman 72e83483a7 runtime: 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)

R=dvyukov, rsc
CC=golang-dev
https://golang.org/cl/4910041
2011-08-18 12:17:09 -04:00
..
gmp cgo: add GoBytes, fix gmp example 2011-07-28 12:39:50 -04:00
life cgo: handle references to symbols in shared libraries 2010-12-17 11:37:11 -08:00
stdio cgo: add GoBytes, fix gmp example 2011-07-28 12:39:50 -04:00
test runtime: speed up cgo calls 2011-08-18 12:17:09 -04:00