- ✨ 新功能 (New Features)
- ✨ New Features
- 增加“附件同步大小限制”配置项。支持手动控制 128MB 熔断开关,提升超大附件同步的灵活性。
- Added "Attachment synchronization size limit" configuration item. Supports manual control of 128MB fuse switch, improving the flexibility of synchronizing large accessories.
- ⚡️ 优化与性能 (Optimizations)
- ⚡️ Optimizations
- 引入 10MB 阈值分段哈希策略。对大文件仅计算首尾各 5MB 数据,大幅降低 I/O 吞吐开销与扫描耗时。
- Introduced 10MB threshold segmentation hashing policy. For large files, only the first and last 5MB of data are calculated, significantly reducing I/O throughput overhead and scanning time.
- 优化哈希计算的内存占用。不再将附件完整内容加载到内存,而是通过 fetch + Range 协议实现流式分段读取,确保内存占用不随文件大小增长。
- Optimize the memory usage of hash calculation. Instead of loading the complete content of the attachment into memory, streaming segmented reading is implemented through the fetch + Range protocol to ensure that memory usage does not increase with the file size.
- 服务端哈希结果复用。同步下载流程优先使用服务端传递的哈希结果,消除本地重复计算开销,本项需配合服务端 2.14.4+ 使用。
- Server-side hash result reuse. The synchronous download process preferentially uses the hash result passed by the server to eliminate local repeated calculation overhead. This item needs to be used with the server 2.14.4+.
- 优化哈希索引批量更新效率。将同步过程中的哈希插入重构为批量原子同步,降低 LocalStorage 写入延迟。
- Optimize hash index batch update efficiency. Reconstruct hash insertion during synchronization into batch atomic synchronization to reduce LocalStorage write latency.
What's Changed
- 修复同步结束时的 Renderer OOM by @CorrectRoadH in #153
New Contributors
- @CorrectRoadH made their first contribution in #153
Full Changelog: 1.25.10-alpha...1.25.12-alpha