Skip to content

refactor: consolidate record header access, drop dead code - #64

Merged
Beforerr merged 1 commit into
mainfrom
push-xqxuvrvqmkny
Aug 31, 2026
Merged

refactor: consolidate record header access, drop dead code#64
Beforerr merged 1 commit into
mainfrom
push-xqxuvrvqmkny

Conversation

@Beforerr

Copy link
Copy Markdown
Member
  • record_size/get_record_type/next_record_offset in one place; the Header
    struct and six hand-rolled copies of the chain-walk arithmetic are gone
  • find_vdr/keys walk the VDR chains through OffsetsIterator
  • delete flatten_field_types, the runtime-n read_be/read_be_i, and the
    collection check_record_type — all uncalled
  • julia_type no longer builds a StaticString type its only caller discards

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.50746% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/variable.jl 66.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
main c277bc3... main / c277bc3...
elx/full_load 30.9 ± 1.6 μs 31.1 ± 1.5 μs 0.995 ± 0.07
elx/sum_array 2.54 ± 0.52 μs 2.75 ± 0.53 μs 0.927 ± 0.26
elx/sum_lazy 2.55 ± 1.5 μs 2.3 ± 1.4 μs 1.11 ± 0.91
elx/sum_var_access 2.73 ± 0.77 μs 2.92 ± 0.87 μs 0.935 ± 0.38
elx/var_access 0.221 ± 0.01 μs 0.24 ± 0.011 μs 0.921 ± 0.059
mms/full_load 18.3 ± 1.6 μs 18.3 ± 1.4 μs 1 ± 0.12
mms/sum_array 0.0716 ± 0.0015 s 0.0715 ± 0.0011 s 1 ± 0.026
mms/sum_slice 2.63 ± 0.34 ms 2.62 ± 0.039 ms 1 ± 0.13
mms/sum_var_access 2.63 ± 0.35 ms 2.63 ± 0.039 ms 0.998 ± 0.13
mms/var_access 0.081 ± 0.01 μs 0.081 ± 0.01 μs 1 ± 0.17
time_to_load 0.126 ± 0.0003 s 0.126 ± 0.0027 s 0.995 ± 0.021
Memory benchmarks
main c277bc3... main / c277bc3...
elx/full_load 0.217 k allocs: 24.8 kB 0.217 k allocs: 24.8 kB 1
elx/sum_array 12 allocs: 28 kB 12 allocs: 28 kB 1
elx/sum_lazy 12 allocs: 28 kB 12 allocs: 28 kB 1
elx/sum_var_access 14 allocs: 28.3 kB 14 allocs: 28.3 kB 1
elx/var_access 1 allocs: 0.234 kB 1 allocs: 0.234 kB 1
mms/full_load 0.065 k allocs: 6.45 kB 0.065 k allocs: 6.45 kB 1
mms/sum_array 1.04 k allocs: 31.7 MB 1.04 k allocs: 31.7 MB 1
mms/sum_slice 0.069 k allocs: 1.29 MB 0.069 k allocs: 1.29 MB 1
mms/sum_var_access 0.069 k allocs: 1.29 MB 0.069 k allocs: 1.29 MB 1
mms/var_access 1 allocs: 0.219 kB 1 allocs: 0.219 kB 1
time_to_load 0.149 k allocs: 11.2 kB 0.149 k allocs: 11.2 kB 1

- record_size/get_record_type/next_record_offset in one place; the Header
  struct and six hand-rolled copies of the chain-walk arithmetic are gone
- find_vdr/keys walk the VDR chains through OffsetsIterator
- delete flatten_field_types, the runtime-n read_be/read_be_i, and the
  collection check_record_type — all uncalled
- julia_type no longer builds a StaticString type its only caller discards
@Beforerr
Beforerr merged commit 8465b6b into main Aug 31, 2026
4 checks passed
@Beforerr
Beforerr deleted the push-xqxuvrvqmkny branch August 31, 2026 09:15
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