• Rob Pike's avatar
    cmd/gc: don't generate zillions of linehists for wrapper functions · 8195ce2b
    Rob Pike authored
    This is a workaround - the code should be better than this - but the
    fix avoids generating large numbers of linehist entries for the wrapper
    functions that enable interface conversions. There can be many of
    them, they all happen at the end of compilation, and they can all
    share a linehist entry.
    Avoids bad n^2 behavior in liblink.
    Test case in issue 8135 goes from 64 seconds to 2.5 seconds (still bad
    but not intolerable).
    
    Fixes #8135.
    
    LGTM=rsc
    R=rsc
    CC=golang-codereviews
    https://golang.org/cl/104840043
    8195ce2b
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...