]> Cypherpunks repositories - gostls13.git/commit
debug/gosym: intern LineTable strings
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 12 Apr 2018 14:42:20 +0000 (07:42 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 13 Apr 2018 19:52:07 +0000 (19:52 +0000)
commite511f153752ab1f17b2862aa47bb149c0ed79990
tree46af674ecdbf3349447563006bab705eda0039a4
parentc0547476f342665514904cf2581a62135d2366c3
debug/gosym: intern LineTable strings

This cuts the allocated space while executing

go tool objdump -S `go tool -n compile`

by over 10%.

It also speeds it up slightly:

name              old time/op       new time/op       delta
ObjdumpSCompiler        9.03s ± 1%        8.88s ± 1%  -1.59%  (p=0.000 n=20+20)

Updates #24725

Change-Id: Ic6ef8e273ede589334ab6e07099ac2e5bdf990c9
Reviewed-on: https://go-review.googlesource.com/106798
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/debug/gosym/pclntab.go