]> Cypherpunks repositories - gostls13.git/commit
debug/elf: avoid using binary.Read() in NewFile()
authorPeter Collingbourne <pcc@google.com>
Wed, 13 Mar 2024 03:01:40 +0000 (20:01 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 15 Mar 2024 05:04:31 +0000 (05:04 +0000)
commitc9ed561db438ba413ba8cfac0c292a615bda45a8
treee5d6a80819553212333128598f56dab1fbe2336e
parenta29c30f620bdf5eba16263ed53d3efa01961d615
debug/elf: avoid using binary.Read() in NewFile()

With this change my test program that reads a tree of ELF files runs
1.71 ± 0.12 times faster without parallelism or 1.39 ± 0.06 times
faster using 8 goroutines.

Change-Id: I443d1a02736f16f5532ef28e1447c97aa87c7126
Reviewed-on: https://go-review.googlesource.com/c/go/+/571436
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/debug/elf/file.go