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

Significant compression speed diffs between Clang and GCC in long mode #2695

Open
davidbolvansky opened this issue Jun 5, 2021 · 2 comments

Comments

@davidbolvansky
Copy link
Contributor

As noted in https://www.phoronix.com/scan.php?page=article&item=clang12-gcc11-icelake&num=2, there is a huge difference in compression speed between clang and gcc in long mode.

image

Standard mode looks kinda fine.

image

Missed vectorization? Any chance to improve it?

@Cyan4973
Copy link
Contributor

The code enabled by --long is likely better optimized by gcc than clang.
clang improvements may happen in the future, but it's not a trivial issue.
It would take a dedicated effort to alter the code in a way which would be friendlier to clang, assuming it's possible. And doing that without impacting negatively other compilers is hard to do. So we'll keep an eye on this topic, but not rush it.

@danlark1
Copy link
Contributor

I can try and help with that as I already tried in #2689 for decompression, yet, as @Cyan4973 said, it takes significant effort to make sure all compilers benefit from it, so no rushing

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

No branches or pull requests

3 participants