Repository navigation
Conversation
libc 0.2.173+ changed the ioctl request type; the untyped constant no longer matches on musl/host builds.
UDZO is encoded as independent 1 MiB zlib chunks. Add dmg-write-zlib-sirocco to encode them with the pure-Rust sirocco crate instead of compcol. The feature is opt-in: codecs and dmg-write-zlib keep compcol, the level default is unchanged, and the read side still uses compcol. Images written by either build re-open with either build.
rmitz
force-pushed
the
sirocco-opt-in
branch
from
November 11, 2026 17:30
d076032 to
98a007d
Compare
Author
This branch has not been deployed
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.
UDZO images are compressed as independent 1 MiB zlib chunks. Add the optional
dmg-write-zlib-siroccofeature to encode those chunks with the pure-Rustsiroccocrate instead ofcompcol.The feature is opt-in.
codecsanddmg-write-zlibkeepcompcol, the leveldefault is unchanged, and the read side still uses
compcol; images written byeither build re-open with either build.
CHANGELOG.mdis left to the releasetooling.
Depends on #70. This branch currently includes
79ff9e7so it compiles againstcurrent libc; after #70 merges I will rebase it away, leaving only the encoder
commit.
Performance (integration-branch measurements)
Codec-only, independent 1 MiB chunks, single thread:
At the preserved default level 6 the codec gain is about 1.38×; at level 4
it is 2.56×. The larger 3.4× figure compares level-4 sirocco against
level-6 compcol and is not the default-level gain.
Method: Synology DS1019+, Intel Celeron J3455 (4 cores, 1.5 GHz, no AVX2),
7.8 GB RAM, Linux 4.4; a zero-stripped slice of a real Time Machine image;
1 MiB UDIF chunks; fat LTO. The 3-thread/encrypted end-to-end numbers come from
the larger integration branch, which also contains the parallel and encryption
pipeline work absent from this PR; they are context, not evidence for this
branch. A CI-safe benchmark harness is not included yet.
Compatibility
hdiutil verifyand attach.
no_stdcore is unaffected.sirocco0.3.1,adler32furious0.1.1,crc32fast1.5.5. All are MIT/Apache-2.0, MSRV ≤ 1.89, have no buildscript or C code.
sirocco’s encoder denies unsafe; its inflate decodercontains unsafe code, and
adler32furioususes runtime-dispatched SIMDintrinsics. This is source inspection, not a security audit; the full audit
with checksums and inspection commands is available on request.
Tests
Full lib suite: 1736 passed, 2 ignored in both modes; 64/64 writer tests.