aboutsummaryrefslogtreecommitdiff
path: root/src/plugin/plugin_dlopen.go
diff options
context:
space:
mode:
authorLeo Antunes <leo@costela.net>2022-10-30 10:15:27 +0000
committerGopher Robot <gobot@golang.org>2023-03-09 17:49:45 +0000
commit2a3b16e184331501eaa2e3ed626642f1edf9a410 (patch)
tree575ad6d56f06c2bb5c433fdbe1470e22c3dca619 /src/plugin/plugin_dlopen.go
parentafbcf2138cb5f95d829f0a556ce3aaf77627cc32 (diff)
downloadgo-2a3b16e184331501eaa2e3ed626642f1edf9a410.tar.xz
net/http: use Copy in ServeContent if CopyN not needed
This small PR allows optimizations made in io.Copy (like the use of io.WriterTo) to be used in one possible path of http.ServeContent (in case of a non-Range request). This, in turn, allows us to skip the buffer allocation in io.Copy. Change-Id: Ifa2ece206ecd4556aaaed15d663b65e95e00bb0a GitHub-Last-Rev: 94fc0318145ba1bd48502564f6488aade871c301 GitHub-Pull-Request: golang/go#56480 Reviewed-on: https://go-review.googlesource.com/c/go/+/446276 Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/plugin/plugin_dlopen.go')
0 files changed, 0 insertions, 0 deletions