Skip to content

Commit

Permalink
Change to io.WriteString to avoid allocation
Browse files Browse the repository at this point in the history
Signed-off-by: grantseltzer <grantseltzer@gmail.com>
  • Loading branch information
grantseltzer committed Nov 27, 2024
1 parent e6db1a6 commit 12b145c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/tracer/remote_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func initalizeDynamicInstrumentationRemoteConfigState() {
// of the Go Dynamic Instrumentation product.
func accessStringsToMitigatePageFault(strs ...string) {
for i := range strs {
io.Discard.Write([]byte(strs[i]))
io.WriteString(io.Discard, strs[i])
}
}

Expand Down

0 comments on commit 12b145c

Please sign in to comment.