Skip to content

archive/zip: support zero-copy writing #73404

@hanwen-flow

Description

@hanwen-flow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Performance

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions