• Russ Cox's avatar
    cmd/gc: bypass DATA instruction for data initialized to integer constant · 4acb70d3
    Russ Cox authored
    Eventually we will want to bypass DATA for everything,
    but the relocations are not standardized well enough across
    architectures to make that possible.
    
    This did not help as much as I expected, but it is definitely better.
    It shaves maybe 1-2% off all.bash depending on how much you
    trust the timings of a single run:
    
    Before: 241.139r 362.702u 112.967s
    After:  234.339r 359.623u 111.045s
    
    R=golang-codereviews, gobot, r, iant
    CC=golang-codereviews
    https://golang.org/cl/44650043
    4acb70d3
obj.c 4.83 KB