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

Optimization when building library from source #799

Closed
drtimes opened this issue Jul 20, 2016 · 2 comments
Closed

Optimization when building library from source #799

drtimes opened this issue Jul 20, 2016 · 2 comments
Labels

Comments

@drtimes
Copy link

drtimes commented Jul 20, 2016

When I build OpenJPEG 2.1.1 from source using cmake (cmake 2.8.12.2, gcc 4.8.4, Ubuntu 14.04), I get execution time of decoding that is almost three times slower than that of the prebuilt library. So to accomplish speed of the prebuilt library I have to add -O3 optimization flag manually: set(CMAKE_C_FLAGS "-O3")

What compiler and optimization did you use to build library in release 2.1.1? Why not add optimization into the cmake lists?

@boxerab
Copy link
Contributor

boxerab commented Jul 20, 2016

set CMAKE_BUILD_TYPE to Release
Default is Debug i.e. no optimizations

@boxerab
Copy link
Contributor

boxerab commented Jul 20, 2016

Also, the appropriate place for this type of discussion is the Google discussion group:
https://groups.google.com/forum/#!forum/openjpeg

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

No branches or pull requests

3 participants