Tune Linux native build flags and xxhash compilation#41
Merged
Conversation
Owner
Author
|
Note: This is an AI-generated PR to attempt to fix the performance regression in #30. I asked the agent to adapt flags to better match distro lz4 builds, and to measure the performance impact. |
|
🚀 Preview deployed to https://7d0c5bcd.lz4-java-yawk-at.pages.dev |
Owner
Author
|
Hmm still some issues, I forgot that the cross-platform build needs to be triggered manually |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pom.xml, with distro-like default Linux CFLAGS and a dedicatednative.xxhash.cflagspropertyxxhash.cwith-fno-tree-vectorizeby default on Linux and keep all flags overridable via-Dnative.*Validation
./mvnw -q verifypassedat.yawk.lz4:lz4-java:1.10.1vs this branch's freshly built native lib (-Djava.library.path=target/classes/net/jpountz/util/linux/amd64) on pinned core:STREAM32K(283 MiB TPCDS-like): 296.07 MiB/s -> 321.01 MiB/s (~+8.4%)HASH32_BLOCK32K: 3391.17 MiB/s -> 6114.35 MiB/s (~+80.3%)Notes