-
Notifications
You must be signed in to change notification settings - Fork 213
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
Adding -DCMAKE_C_FLAGS_RELEASE="-static" -DCMAKE_EXE_LINKER_FLAGS="-static" slows down avifenc runtime #2633
Comments
The Frank, could you try changing |
That fixed the performance issue. |
Yannis: You added If it is necessary to use the
But it doesn't seem useful to generate fully static binaries. If I don't use the
|
The previous line states Line 158 in bdba09d
so it makes sense to remove compiler optimizations and to make sure it is fully static.
Maybe that but probably not only.
So it is not "fully static" then? |
Thanks for the reply. I understand it now. For debugging purposes, it is also helpful to include symbolic information for the debugger (e.g., the We can consider splitting "For development and debugging purposes" and "to generate fully static binaries":
|
Done in #2642. |
Following this guide calling avifenc is slower than compared to building with this cmake line
Steps to reproduce:
time ./avifenc happy_dog.jpg example.avif
time ./avifenc_no_flags happy_dog.jpg example.avif
On my machine this was the output from step 4:
And output from step 5:
The text was updated successfully, but these errors were encountered: