]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.3] cmd/gc: don't generate zillions of linehists for wrapper functions
authorDavid Symonds <dsymonds@golang.org>
Tue, 3 Jun 2014 01:19:11 +0000 (11:19 +1000)
committerDavid Symonds <dsymonds@golang.org>
Tue, 3 Jun 2014 01:19:11 +0000 (11:19 +1000)
commitf34a051afc7e584b079096f571d1970130cc4e96
treecead9f6631db2bbacdf42c16490d206291dd4ff2
parente82cde2d5dda33564904f2db04d3e68960bec384
[release-branch.go1.3] cmd/gc: don't generate zillions of linehists for wrapper functions

««« CL 104840043 / 876107512a67
cmd/gc: don't generate zillions of linehists for wrapper functions
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
»»»

TBR=adg
CC=golang-codereviews
https://golang.org/cl/102070045
src/cmd/gc/subr.c