diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-08-11 08:43:30 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-08-14 23:32:56 +0000 |
| commit | 589fc314af46e0d65a91fa1048ba319f1bf390a6 (patch) | |
| tree | 4f3b843898a930cd623034e1b72ce74d2d9e5912 /src/debug | |
| parent | 29e9b89b9ada73fa7775b351c100709c330c0a46 (diff) | |
| download | go-589fc314af46e0d65a91fa1048ba319f1bf390a6.tar.xz | |
runtime: calculate k only once in mapiternext
Make the calculation of k and v a bit lazier.
None of the following code cares about indirect-vs-direct k,
and it happens on all code paths, so check t.indirectkey earlier.
Simplifies the code and reduces both machine code and stack size.
Change-Id: I5ea4c0772848d7a4b15383baedb9a1f7feb47201
Reviewed-on: https://go-review.googlesource.com/55092
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/debug')
0 files changed, 0 insertions, 0 deletions
