perf(export): accelerate lossless JXL encoding#1368
Closed
VailElla wants to merge 7 commits into
Closed
Conversation
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.
Description
Improve DNG-to-JPEG XL export throughput while preserving lossless output and the existing export validation/metadata/cancellation behavior. Lossless JXL now honors the selected Fast/Balanced/Best effort instead of always using the slowest effort, uses the shared Rayon pool for codec work, parallelizes 16-bit quantization, and avoids redundant 8/16-bit conversions.
This branch is intentionally cumulative: it contains the prerequisite RAW/JXL export stack plus this performance change, so it should be reviewed as the next stacked export update.
Type of Change
Changes Made
with_threads(0)and parallelize high-precision sample quantization.Screenshots/Videos
Manual export was exercised in the local macOS app. The generated JXL files remain local in
/tmp/rapidraw-jxl-manual-20260713and are not uploaded here.Testing
Test Configuration:
IMG_2094.DNG, JPEG XL quality 100, 8-bit, metadata included, GPS removal enabledObserved wall-clock time from pressing Save until the app returned to the export-ready state:
All three outputs were recognized by macOS as JPEG XL containers.
Automated checks:
cargo +1.96.1 fmt --manifest-path src-tauri/Cargo.toml --check— passedcargo +1.96.1 check --manifest-path src-tauri/Cargo.toml— passed (17 pre-existing warnings)cargo +1.96.1 test --manifest-path src-tauri/Cargo.toml -- --nocapture— passed (37 tests)npm run build— passed./node_modules/.bin/tauri build --debug --bundles app --no-sign— passedgit diff --check— passedKnown repository baseline checks (unchanged by this branch):
npm run typecheckcurrently reports 117 existing TypeScript errors across the repository.npm run i18n:checkcurrently reports existing plural-key drift in 11 locale files.Checklist
Additional Notes
mainis expected.AI Disclaimer: