Descriptioncmd/gc: do not compute dead value maps if they will not be used
Reduces 6g big.go memory usage from 251 MB to 242 MB.
Reduces 6g slow.go memory usage from 529 MB to 453 MB.
Mostly a memory savings; 6g slow.go is only about 5% faster.
The test programs are at
https://rsc.googlecode.com/hg/testdata/big.go (36k lines, 276kB)
https://rsc.googlecode.com/hg/testdata/slow.go (7k lines, 352kB)
Patch Set 1 #Patch Set 2 : diff -r b7128d1af9af https://code.google.com/p/go/ #Patch Set 3 : diff -r b7128d1af9af https://code.google.com/p/go/ #Patch Set 4 : diff -r a768c0592b88 https://code.google.com/p/go/ #MessagesTotal messages: 7
|