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

Respect NDEBUG flag #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Respect NDEBUG flag #103

wants to merge 1 commit into from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants