Skip to content

why precomp encode faster than preflate? #145

Description

@LeviKing98

i use precomp to uncompress a zip file with cmd ./precomp -cn ./temp.zip and reencode it with cmd ./precomp -r ./temp.zip.pcf. It takes 1300ms. And decompressed length is 8572784, reconstrucion length is 225091.
At same time, i use preflate to uncompress the deflate stream of zip file above with cmd ./preflate_demp -s ./temp.zip.deflate and reencode it with cmd ./preflate_demo -r ./temp.zip.deflate. It takes 4000ms. And decompressed length is 8572784, reconstruction length is 236398.
I have checked the code of preflate in precomp, it seems to be the same with original source code, so what possibly could be the reason?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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