• Keith Randall's avatar
    runtime: initialize itab.hash always · fcf445dc
    Keith Randall authored
    We weren't initializing this field for dynamically-generated itabs.
    Turns out it doesn't matter, as any time we use this field we also
    generate a static itab for the interface type / concrete type pair.
    But we should initialize it anyway, just to be safe.
    
    Performance on the benchmarks in CL 44339:
    benchmark               old ns/op     new ns/op     delta
    BenchmarkItabFew-12     1040585       26466         -97.46%
    BenchmarkItabAll-12     228873499     4287696       -98.13%
    
    Change-Id: I58ed2b31e6c98b584122bdaf844fee7268b58295
    Reviewed-on: https://go-review.googlesource.com/44475Reviewed-by: 's avatarJosh Bleecher Snyder <josharian@gmail.com>
    fcf445dc
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...