aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2023-08-17 10:26:36 +0200
committerQuim Muntal <quimmuntal@gmail.com>2023-08-21 08:33:51 +0000
commit50f2b7b76481f045649d12d2a26dd36b7cc248a3 (patch)
tree73037e15539464324ed7122b75fccee524b678cf /src/runtime/runtime2.go
parente094e80f65f77bf83e2962dc5150915711f2166d (diff)
downloadgo-50f2b7b76481f045649d12d2a26dd36b7cc248a3.tar.xz
os: avoid allocating a string for ReadDir skipped entries on Windows
Shave off a few allocations while reading a directory by checking if the entry name is "." or ".." before allocating a string for it. Change-Id: I05a87d7572bd4fc191db70aaa9e22a6102f68b4b Reviewed-on: https://go-review.googlesource.com/c/go/+/520415 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Quim Muntal <quimmuntal@gmail.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/runtime2.go')
0 files changed, 0 insertions, 0 deletions