aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2020-04-29 16:45:05 -0700
committerMatthew Dempsky <mdempsky@google.com>2020-04-30 00:13:38 +0000
commit844b410922b2ea7d22b651c536178e79696749f6 (patch)
tree49a8c43fc8715d0b1b34c82fcb91a9d79114b5cc /src/runtime
parenta7e539619e5a73d9330f1698d710d99273651768 (diff)
downloadgo-844b410922b2ea7d22b651c536178e79696749f6.tar.xz
net/http/cgi: replace constant map with switch statement
The switch statement can be statically optimized by the compiler, whereas similarly optimizing the map index expression would require additional compiler analysis to detect the map is never mutated. Updates #10848. Change-Id: I2fc70d4a34dc545677b99f218b51023c7891bbbd Reviewed-on: https://go-review.googlesource.com/c/go/+/231041 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions