Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
20% Positive
Analyzed from 246 words in the discussion.
Trending Topics
#copy#sendfile#counting#where#rust#https#std#reader#user#space
Discussion Sentiment
Analyzed from 246 words in the discussion.
Trending Topics
Discussion (12 Comments)Read Original on HackerNews
Same for Rust. As https://doc.rust-lang.org/stable/std/io/fn.copy.html says, std::io::copy can use copy_file_range(2), sendfile(2), or splice(2).
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.