diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2023-08-17 18:13:01 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-08-18 23:45:44 +0000 |
| commit | a9859a7df72a8ca9686b4fb939989c04b42804fe (patch) | |
| tree | eab526780c6cd2cbafc5666b6d87007408abbd7e /src/encoding/base32 | |
| parent | ba7ba9bcc0e755f2c072d308e1c9f79bb2564e03 (diff) | |
| download | go-a9859a7df72a8ca9686b4fb939989c04b42804fe.tar.xz | |
time: make Duration.String inlineable
Perform the [32]byte to string conversion in an inlinable method.
Thus, if the result does not escape in the context of the caller,
we can entirely avoid a call to runtime.slicebytetostring.
Change-Id: Iae8ec2a532776ed6cf99597f19e3f7f21c694c3a
Reviewed-on: https://go-review.googlesource.com/c/go/+/520602
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/encoding/base32')
0 files changed, 0 insertions, 0 deletions
