1
0
mirror of https://github.com/golang/go synced 2024-10-05 06:21:24 -06:00
go/src/cmd/5g
Russ Cox f91cc3bdbb gc: optimize interface ==, !=
If the values being compared have different concrete types,
then they're clearly unequal without needing to invoke the
actual interface compare routine.  This speeds tests for
specific values, like if err == io.EOF, by about 3x.

benchmark                  old ns/op    new ns/op    delta
BenchmarkIfaceCmp100             843          287  -65.95%
BenchmarkIfaceCmpNil100          184          182   -1.09%

Fixes #2591.

R=ken2
CC=golang-dev
https://golang.org/cl/5651073
2012-02-11 00:19:24 -05:00
..
cgen64.c 5g: fix build on Plan 9 2011-08-29 09:34:52 -04:00
cgen.c gc: optimize interface ==, != 2012-02-11 00:19:24 -05:00
doc.go tweak documentation of commands 2009-11-09 11:45:15 -08:00
galign.c gc: shuffle #includes 2011-08-25 16:25:10 -04:00
gg.h gc: Nicer errors before miscompiling. 2012-01-10 11:19:22 +01:00
ggen.c 5g: fix build 2011-12-13 14:12:16 -05:00
gobj.c 5g, 6g, 8g: registerize variables again 2011-10-03 17:46:36 -04:00
gsubr.c gc: optimize interface ==, != 2012-02-11 00:19:24 -05:00
list.c gc: shuffle #includes 2011-08-25 16:25:10 -04:00
Makefile build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
opt.h arm bug with stack adjust 2011-01-19 16:30:13 -08:00
peep.c 5g: fix build on Plan 9 2011-08-29 09:34:52 -04:00
reg.c 5g, 6g, 8g: fix loop finding bug, squash jmps 2011-10-04 15:06:16 -04:00