diff options
| author | Ian Lance Taylor <iant@golang.org> | 2023-04-11 15:28:23 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-25 22:06:06 +0000 |
| commit | 6c1792d1ff5fa949e39e383828c7dc666f8ac4fe (patch) | |
| tree | b606399649d4c63b64f7627bdeaceffb129b9453 /src/runtime/mem_linux.go | |
| parent | bb079efbdcc738a236b30f295ccb286df58e2bc3 (diff) | |
| download | go-6c1792d1ff5fa949e39e383828c7dc666f8ac4fe.tar.xz | |
crypto/sha1: add WriteString and WriteByte method
This can reduce allocations when hashing a string or byte
rather than []byte.
For #38776
Change-Id: I7c1fbdf15abf79d2faf360f75adf4bc550a607e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/483815
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
Diffstat (limited to 'src/runtime/mem_linux.go')
0 files changed, 0 insertions, 0 deletions
