Repository navigation
native: build the image at -O3 - #160
Merged
Merged
Conversation
On GraalVM CE 25.4.4.1.1 -O3 is not the same as -O2 (the pom.xml comment said it was). Timed laptop A/B, -O3 against -O2 at -march=compatibility: the four warm figures have a geometric mean of 0.736, document ingest 0.852, graph ingest 0.884, peak RSS unchanged; the library is 1.62x larger and the build takes 1.43x as long. -march=x86-64-v3 gave no gain worth a second library, so the wheel keeps -march=compatibility. NATIVE_IMAGE in _build_info records -O3. Closes #159 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
The dispatched run on this branch (41228183408, head
The largest is 64.5 MB, under the 100 MB per-wheel policy. The 1.66 to 1.69x growth on every platform is in line with the 1.62x library growth measured in #159, so |
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.
Builds the native image at
-O3instead of-O2on every platform:native/scripts/build-image.shpasses-Dnative.opt=-O3, thenative/pom.xmlcomment no longer says that-O2and-O3are the same on GraalVM CE, andarcadedb._build_info.NATIVE_IMAGErecords-O3. The measurements are in #159: the four warm figures have a geometric mean of 0.736, ingest is 11 to 15 percent faster, peak RSS is unchanged, and the library is 1.62x larger.Verification before merge: pull requests build only linux-x86_64, so I dispatch this workflow on the branch (all four platforms, Python 3.12 and 3.14) and merge when every parity leg passes. The resulting wheel sizes go into a comment here; the project policy is under 100 MB per wheel (
scripts/verify_wheel_size.py).Closes #159
🤖 Generated with Claude Code