Skip to content

gz() is inefficient #1042

Open
Open
@Rudxain

Description

@Rudxain

It uses wc -c which iterates over every single byte, when counting the size. I know wc is portable, but I suggest we use an alternative that does a syscall to fetch the size directly from the filesystem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions