]> Cypherpunks repositories - gostls13.git/commit
go/types: less closure creations in gcimporter.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Sun, 6 Jan 2013 22:38:38 +0000 (23:38 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Sun, 6 Jan 2013 22:38:38 +0000 (23:38 +0100)
commit0f545d9ab22034dffa468367d44aceb257e1048e
tree81448fb6dc70769df443a3e5c3c82ed06770a83f
parent1e1aea6821fa598d1510f55d5b9592dccc924d2b
go/types: less closure creations in gcimporter.

Closures are incredibly expensive on linux/arm due to
repetitive flush of instruction cache.

go test -short on ODROID-X:

Before:
ok      exp/gotype      17.091s
ok      go/types        2.225s

After:
ok      exp/gotype      7.193s
ok      go/types        1.143s

R=dave, minux.ma, rsc
CC=golang-dev, remy
https://golang.org/cl/7062045
src/pkg/go/types/gcimporter.go