Skip to content

Dev profile: optimise the image decoders and SHA-256 - #110

Merged
ndbroadbent merged 1 commit into
mainfrom
dev-profile-opt
Dec 3, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
dev-profile-opt

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

CI's visual job uploads with target/debug/visualci (it builds the server and CLI together in the dev profile), so every screenshot is decoded and hashed unoptimised: 75 s for 144 unchanged screenshots on main run 47024394273.

  • Root Cargo.toml and app/Cargo.toml: opt-level = 3 in dev builds for image, png, fdeflate, miniz_oxide, adler2, simd-adler32, crc32fast, zune-jpeg, zune-core, image-webp and sha2 (the decode and hash path, checked against both lockfiles). lz4_flex isn't in either tree.
  • Everything else stays a plain dev build. Release builds, and so the published CLI, are unchanged: no version bump.

After merging I'll compare the next main run's upload time with the 75 s.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

CI's visual job uploads with target/debug/visualci, which decodes and hashes every screenshot unoptimised: 75 s for
144 unchanged screenshots on main run 47024394273. opt-level 3 for image, png, fdeflate, miniz_oxide, adler2,
simd-adler32, crc32fast, zune-jpeg, zune-core, image-webp and sha2 in dev builds; the release binary is unchanged.
@ndbroadbent
ndbroadbent merged commit cf893e3 into main Dec 3, 2026
12 checks passed
@ndbroadbent
ndbroadbent deleted the dev-profile-opt branch December 3, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant