You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Growing a FileMappedResizableDirectMemory reserves real disk space for zero pages on NTFS. mem-rs keeps zeroed growth sparse on Unix and on Windows file systems that support sparse ranges (linksplatform/mem-rs#39, linksplatform/mem-rs#43). This matters for doublets stores that reserve large capacities up front.
Proposed solution
Unix: extend with ftruncate / RandomAccess.SetLength, which creates holes. Never write zeroes explicitly; mapping a new region already reads as zero.
Windows: once per file, DeviceIoControl(FSCTL_SET_SPARSE) (P/Invoke), guarded by GetVolumeInformation → FILE_SUPPORTS_SPARSE_FILES; then SetLength.
Avoid MemoryBlock.Zero over freshly mapped regions.
Tests check allocated size (stat.st_blocks, GetCompressedFileSize) on CI runners that support it.
Activity