8000 compressing twice is counter-productive · Issue #10 · foliojs/unicode-trie · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
compressing twice is counter-productive #10
Open
@PerBothner

Description

@PerBothner

In builder.js the compression method deflateRaw is called twice. The general "received wisdom" is that trying to compress an already-compressed while is unlikely to lead to further compression and may in fact lead to worse compression.

Out of curiosity, I modified builder.js when using it to generate the classes-v13.0.0.mjs (for graphene-breaker-mjs). The data buffer was 39184 bytes. After the first deflateRaw the result was 2176 bytes. After the second, the result was 2181 bytes. Oops.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0