diff options
| author | Russ Cox <rsc@golang.org> | 2014-04-03 19:05:17 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-04-03 19:05:17 -0400 |
| commit | f5f5a8b6209f84961687d993b93ea0d397f5d5bf (patch) | |
| tree | 69a2398e1615a1d8d7c4aac5725274a414eb3eaf /src/pkg/runtime/os_linux.c | |
| parent | 0e1b6bb5470701090cd8dadacc6eb5074a86cf82 (diff) | |
| download | go-f5f5a8b6209f84961687d993b93ea0d397f5d5bf.tar.xz | |
cmd/gc, runtime: optimize map[string] lookup from []byte key
Brad has been asking for this for a while.
I have resisted because I wanted to find a more general way to
do this, one that would keep the performance of code introducing
variables the same as the performance of code that did not.
(See golang.org/issue/3512#c20).
I have not found the more general way, and recent changes to
remove ambiguously live temporaries have blown away the
property I was trying to preserve, so that's no longer a reason
not to make the change.
Fixes #3512.
LGTM=iant
R=iant
CC=bradfitz, golang-codereviews, khr, r
https://golang.org/cl/83740044
Diffstat (limited to 'src/pkg/runtime/os_linux.c')
0 files changed, 0 insertions, 0 deletions
