Live data from Hacker News

Zero-copy in Go: sendfile, splice, and the cost of io.Copy

segflow.github.io

1–10 of 24 posts

Re: Zero-copy in Go: sendfile, splice, and the cost of io.Copy

#8
post #4

Zero-Copy in Go: Why magic is an antipattern, and: performance is observable behavior.

What would you prefer? I do think it is criminal this is not documented ( https://pkg.go.dev/io#Copy ), but I think io.Copy is fine as an API.

it is documented by saying it calls ReadFrom or WriteTo

Re: Zero-copy in Go: sendfile, splice, and the cost of io.Copy

#9
This is almost like the expression problem. Copy is a new operation, and you introduced a new type, thus creating a new grid cell nobody from either side could have reasonably known about - except for the fact Copy is in the standard library so you could have known about it but not done anything.
Post reply on HN