Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why precomp encode faster than preflate? #145

Open
LeviKing98 opened this issue Jun 12, 2023 · 0 comments
Open

why precomp encode faster than preflate? #145

LeviKing98 opened this issue Jun 12, 2023 · 0 comments

Comments

@LeviKing98
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant