Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Conversation

@MrKrzYch00
Copy link
Contributor

Respect NDEBUG flag to build non-debug version of Zopfli.

Respect NDEBUG flag to build non-debug version of Zopfli.
@kornelski
Copy link
Contributor

That's nice! I'm seeing 6% speed improvement with -DNDEBUG

@MrKrzYch00
Copy link
Contributor Author

MrKrzYch00 commented May 13, 2016

NDEBUG disables all aserts so there are no checks to abort execution when something doesn't go right. I think without this commit and just by issuing -D NDEBUG You should have similar improvement.

Though the commit is mainly to finish Lode's TODO thing for ZopfliVerifyLenDist. There were 2 ways to do it, either to just omit insides of ZopfliVerifyLenDist and void typecast its parameters to reduce number of pre-compier checks or to be more concerned about optimal running speed by doing it a bit uglier as in commit. :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants