Descriptiongc: make merely referencing an outer variable in a closure not force heapallocation.
before: runtime_test.BenchmarkCallClosure1 20000000 135 ns/op
after: runtime_test.BenchmarkCallClosure1 500000000 6 ns/op
Patch Set 1 #Patch Set 2 : diff -r 96d9616ffbad https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 96d9616ffbad https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 96d9616ffbad https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 96d9616ffbad https://go.googlecode.com/hg/ #
Total comments: 4
Patch Set 6 : diff -r 96d9616ffbad https://go.googlecode.com/hg/ #
MessagesTotal messages: 4
|