Proposal Details
The fileWriter returned by CreateRaw does not do any
checksumming. Hence, we can bypass userspace for the copying if the
source is another file.
We don't have to add new methods/functions, but simply add ReadFrom to the io.Writer returned by CreateRaw.
Sample implementation in https://go-review.googlesource.com/c/go/+/665596
Proposal Details
The
fileWriterreturned byCreateRawdoes not do anychecksumming. Hence, we can bypass userspace for the copying if the
source is another file.
We don't have to add new methods/functions, but simply add
ReadFromto theio.Writerreturned byCreateRaw.Sample implementation in https://go-review.googlesource.com/c/go/+/665596