Repository navigation
LayerKeySort v4.2.0
Full v4.2.0 is a compatible C17 update for dynamic ordering, stable pointer-array sorting, immutable ordered batches and historical snapshots. It retains the 64-function / 14-type source API, LS1 and LKS4SNP1 contracts, stable occurrence Handles and caller-owned payloads.
Changes
- Ordinary mutation updates only affected record locations.
- Cross-block precedence uses bounded labels, with height/parent AVL fallback for untagged blocks; local structural work stays bounded by block policy and balanced-index maintenance.
- Snapshot wire uses portable fixed-width conversion, keeping exact bytes and validation before allocation.
- Offset-one wire and restored mixed-tag regressions strengthen the retained implementation's coverage.
- Complete bilingual user and implementation guides explain practical workflows, shared-item mutation, concurrency, failure recovery, distribution and compatibility.
Evidence
Archived matched Windows/Linux runs of the unchanged operational implementation show median Full/4.1 elapsed ratios 0.629106/0.640047 overall and 0.197718/0.219173 compare-heavy; 45/45 wins per host. These describe the tested controls and workloads. Native tag-range OM wins several update-heavy cases. The tested endpoint flat-history composition is faster in its lifecycle comparison; bulk Treap restore remains unmeasured. No fresh Stable benchmark is claimed. See complete evidence.
Validation covers strict C17, API/wire fixtures, failure injection, seven examples and C/C++ source/install/amalgamation consumers. The final integrated source and rebuilt assets are bound to the exact commit below; CI run links are supplied in the publication manifest.
Source and assets
Acquire source from the approved exact commit; a future published tag may be used only after it exists. The prepared assets are LayerKeySort-4.2.0-amalgamation.zip and LayerKeySort-4.2.0-SHA256SUMS.txt. The ZIP contains layerkeysort.h, layerkeysort.c, example.c, LICENSE, README.txt; compile the implementation as C17 and link C/C++ clients. The reviewed preparation ZIP SHA-256 is 1b02e7c8b5137bc4cae7d2c3e9859edf3158802bc02ba1aad593ebd9d1ba3bdb. This checksum was confirmed by rebuilding and validating assets from the exact integrated commit below.
Practical limits
Per-occurrence allocation, block slack, callbacks, O(N+A) history export, retained snapshots and restore scratch remain real costs. Applications retain identity, transactions, callback side effects and synchronization. No universal speed advantage, hard end-to-end latency, general binary ABI, database or CRDT is supplied. Mini and Workbench are unchanged; downstream dependency adoption is separate.
Exact source and asset checksums
Source commit: f751e1ee2afd682874281d6dc495969f9eca49eb.
1b02e7c8b5137bc4cae7d2c3e9859edf3158802bc02ba1aad593ebd9d1ba3bdb LayerKeySort-4.2.0-amalgamation.zip
36e06a53ad41f0a01ee0435e5c81ec81b8611b61df2351f5cf322ea1acd6f68e LayerKeySort-4.2.0-SHA256SUMS.txt
Final-target validation
All six C17 configurations passed CTest 39/39 at the exact release target: MSVC x64/Win32, Linux GCC, Linux Clang, Linux Clang ASan/UBSan, and macOS AppleClang. Mini, Workbench, measurement-evidence checks and Pages also succeeded.
LayerKeySort v4.2.0
Full v4.2.0 是兼容的 C17 更新,面向动态顺序、稳定指针数组排序、不可变有序批次及历史快照。保留 64 函数/14 类型源码 API、LS1 和 LKS4SNP1、稳定实例 Handle 及调用者拥有的载荷。
改进
- 普通修改只更新受影响的记录位置。
- 跨块先后使用有界标签,无标签时按高度/父指针进行 AVL 回退;局部结构工作仍由块策略及平衡索引维护约束。
- 快照线格式采用可移植固定宽度转换,保持精确字节和先验证后分配。
- 偏移一字节线格式和恢复后混合标签回归增强保留实现的覆盖。
- 完整双语使用及实现指南说明实际工作流、共享对象修改、并发、失败恢复、分发及兼容。
证据
未变运行实现的 Windows/Linux 配对归档测得 Full/4.1 总体耗时比中位数为 0.629106/0.640047,比较密集为 0.197718/0.219173;每平台胜出 45/45。这些结论适用于具体对照与负载。原生标签区间 OM 在若干更新密集条件胜出;端点平面历史组合在对应生命周期比较更快,Treap 批量恢复未测。没有新的 Stable 基准。见完整证据。
验证覆盖严格 C17、API/线格式向量、故障注入、七个示例及 C/C++ 源码/安装/合并版消费者。最终集成源码和重建资产绑定下方确切提交;CI 运行链接列于发布清单。
源码及资产
从获准的确切提交取得源码;未来标签只有实际存在后才可使用。准备好的资产为 LayerKeySort-4.2.0-amalgamation.zip 和 LayerKeySort-4.2.0-SHA256SUMS.txt。ZIP 含 layerkeysort.h、layerkeysort.c、example.c、LICENSE、README.txt。实现按 C17 编译,再链接 C/C++ 调用方。审查用准备 ZIP 的 SHA-256 为 1b02e7c8b5137bc4cae7d2c3e9859edf3158802bc02ba1aad593ebd9d1ba3bdb。本校验值已从下方确切集成提交重新构建并验证。
实际边界
逐实例分配、块空余、回调、O(N+A) 历史导出、保留快照及恢复临时数组仍有成本。应用管理身份、事务、回调副作用与同步。不提供普遍速度优势、端到端硬延迟、通用二进制 ABI、数据库或 CRDT。Mini 与 Workbench 不变,下游依赖采用另行决定。
确切源码及资产校验值
源码提交:f751e1ee2afd682874281d6dc495969f9eca49eb。
1b02e7c8b5137bc4cae7d2c3e9859edf3158802bc02ba1aad593ebd9d1ba3bdb LayerKeySort-4.2.0-amalgamation.zip
36e06a53ad41f0a01ee0435e5c81ec81b8611b61df2351f5cf322ea1acd6f68e LayerKeySort-4.2.0-SHA256SUMS.txt
最终目标验证
确切发行目标的六个 C17 配置均通过 CTest 39/39:MSVC x64/Win32、Linux GCC、Linux Clang、Linux Clang ASan/UBSan 及 macOS AppleClang。Mini、Workbench、测量证据检查及 Pages 也全部成功。