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

Set CMAKE_BUILD_TYPE for LZ4/Zlib and Zstd #1034

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

Shelnutt2
Copy link
Member

@Shelnutt2 Shelnutt2 commented Oct 26, 2018

Setting CMAKE_BUILD_TYPE=Release enables vectorization on gcc 4.8.5, which yields a boost in performance for lz4/zlib/zstd compressors.

Closes #1033

@Shelnutt2 Shelnutt2 requested a review from tdenniston October 26, 2018 22:26
@tdenniston
Copy link
Contributor

Have we verified other than zstd that these increase performance? In general we should avoid explicit setting compiler flags where possible. Also for MSVC I think /Ox is the equivalent flag?

@tdenniston tdenniston added this to the 1.4.1 milestone Oct 29, 2018
@tdenniston tdenniston added the backport tags commits to backport to release branch label Oct 29, 2018
@Shelnutt2 Shelnutt2 force-pushed the ss/1033-set-cflags-compressors branch from 67ade2e to 0714706 Compare October 29, 2018 17:08
This enables vectorization which yields a boost in performance
for these compressors. #1033
@Shelnutt2 Shelnutt2 force-pushed the ss/1033-set-cflags-compressors branch from 0714706 to 3db1195 Compare October 29, 2018 17:10
@Shelnutt2 Shelnutt2 changed the title Set '-O3' C_FLAG for LZ4/Zlib and Zstd Set CMAKE_BUILD_TYPE for LZ4/Zlib and Zstd Oct 29, 2018
@tdenniston tdenniston merged commit 5ade926 into dev Oct 29, 2018
@tdenniston tdenniston deleted the ss/1033-set-cflags-compressors branch October 29, 2018 18:48
Shelnutt2 added a commit that referenced this pull request Oct 29, 2018
This enables vectorization which yields a boost in performance
for these compressors. #1033

PR #1034

(cherry picked from commit 3db1195)
@tdenniston tdenniston removed the backport tags commits to backport to release branch label Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants