Skip to content

feat: add close(::CDFDataset)#49

Merged
Beforerr merged 1 commit into
mainfrom
push-wkxuwqxkykwy
Jun 11, 2026
Merged

feat: add close(::CDFDataset)#49
Beforerr merged 1 commit into
mainfrom
push-wkxuwqxkykwy

Conversation

@Beforerr

Copy link
Copy Markdown
Member

There was no way to release the mmap (which locks the file on Windows)
before GC. close finalizes the backing map; compressed files already
live in memory, and their original mmap is now unmapped eagerly right
after decompression instead of lingering until GC.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
main e027e09... main / e027e09...
elx/full_load 0.121 ± 0.0041 ms 0.114 ± 0.0038 ms 1.07 ± 0.051
elx/sum_array 2.8 ± 0.44 μs 2.69 ± 0.53 μs 1.04 ± 0.26
elx/sum_lazy 2.62 ± 1.1 μs 2.69 ± 0.95 μs 0.974 ± 0.54
elx/sum_var_access 3.12 ± 0.76 μs 3.04 ± 0.71 μs 1.03 ± 0.35
elx/var_access 0.32 ± 0.01 μs 0.281 ± 0.01 μs 1.14 ± 0.054
mms/full_load 25.8 ± 2.6 μs 25.2 ± 2.6 μs 1.03 ± 0.15
mms/sum_array 0.0972 ± 0.0063 s 0.0969 ± 0.015 s 1 ± 0.17
mms/sum_slice 3.58 ± 0.053 ms 3.62 ± 0.16 ms 0.99 ± 0.045
mms/sum_var_access 3.62 ± 0.086 ms 3.61 ± 0.26 ms 1 ± 0.075
mms/var_access 0.11 ± 0.01 μs 0.1 ± 0.01 μs 1.1 ± 0.15
time_to_load 0.134 ± 0.00071 s 0.13 ± 0.0033 s 1.03 ± 0.027
Memory benchmarks
main e027e09... main / e027e09...
elx/full_load 3.73 k allocs: 0.167 MB 3.73 k allocs: 0.167 MB 1
elx/sum_array 5 allocs: 27.7 kB 5 allocs: 27.7 kB 1
elx/sum_lazy 5 allocs: 27.7 kB 5 allocs: 27.7 kB 1
elx/sum_var_access 8 allocs: 28.1 kB 8 allocs: 28.1 kB 1
elx/var_access 2 allocs: 0.328 kB 2 allocs: 0.328 kB 1
mms/full_load 0.243 k allocs: 14.8 kB 0.243 k allocs: 14.8 kB 1
mms/sum_array 0.524 k allocs: 31.6 MB 0.524 k allocs: 31.6 MB 1
mms/sum_slice 0.045 k allocs: 1.29 MB 0.045 k allocs: 1.29 MB 1
mms/sum_var_access 0.045 k allocs: 1.29 MB 0.045 k allocs: 1.29 MB 1
mms/var_access 2 allocs: 0.328 kB 2 allocs: 0.328 kB 1
time_to_load 0.145 k allocs: 11 kB 0.145 k allocs: 11 kB 1

@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

There was no way to release the mmap (which locks the file on Windows)
before GC. close finalizes the backing map; compressed files already
live in memory, and their original mmap is now unmapped eagerly right
after decompression instead of lingering until GC.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Beforerr Beforerr force-pushed the push-wkxuwqxkykwy branch from b7b13f1 to e027e09 Compare June 11, 2026 17:07
@Beforerr Beforerr merged commit 2b0c96f into main Jun 11, 2026
6 of 7 checks passed
@Beforerr Beforerr deleted the push-wkxuwqxkykwy branch June 11, 2026 20:37
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