Skip to content

add support for custom struct types as type-wrapper#158

Draft
pk910 wants to merge 1 commit intomasterfrom
pk910/wrapper-structs
Draft

add support for custom struct types as type-wrapper#158
pk910 wants to merge 1 commit intomasterfrom
pk910/wrapper-structs

Conversation

@pk910
Copy link
Copy Markdown
Owner

@pk910 pk910 commented Apr 1, 2026

No description provided.

@pk910 pk910 changed the title add support for arbitrary wrapper struct types as type-wrapper add support for custom struct types as type-wrapper Apr 1, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

❌ Patch coverage is 76.63551% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.58%. Comparing base (301a736) to head (d601140).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #158      +/-   ##
==========================================
- Coverage   95.85%   95.58%   -0.28%     
==========================================
  Files          47       47              
  Lines       10803    10867      +64     
==========================================
+ Hits        10355    10387      +32     
- Misses        279      301      +22     
- Partials      169      179      +10     
Components Coverage Δ
dynssz 99.84% <85.71%> (-0.08%) ⬇️
dynsszgen 91.79% <73.41%> (-0.42%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

Benchmark Results

Library Benchmarks

                                                        │ base-lib.txt │             pr-lib.txt             │
                                                        │    sec/op    │    sec/op     vs base              │
TreeFromNodes/no_nodes_with_limit-4                       4.681n ± ∞ ¹   4.675n ± ∞ ¹  -0.13% (p=0.008 n=5)
TreeFromNodes/single_node_with_limit_2-4                  34.48n ± ∞ ¹   33.39n ± ∞ ¹  -3.16% (p=0.008 n=5)
TreeFromNodes/two_nodes_with_limit_2-4                    33.34n ± ∞ ¹   32.31n ± ∞ ¹  -3.09% (p=0.008 n=5)
TreeFromNodes/non-power_of_2_limit-4                      25.39n ± ∞ ¹   24.72n ± ∞ ¹  -2.64% (p=0.008 n=5)
TreeFromNodes/large_limit_with_few_nodes_does_not_OOM-4   326.9n ± ∞ ¹   304.0n ± ∞ ¹  -7.01% (p=0.008 n=5)
¹ need >= 6 samples for confidence interval at level 0.95
geomean                                                   201.7n         197.7n        -1.98%

                                                        │ base-lib.txt  │              pr-lib.txt               │
                                                        │     B/op      │     B/op       vs base                │
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean
geomean                                                               ³                  +0.11%               ³

                                                        │ base-lib.txt │             pr-lib.txt              │
                                                        │  allocs/op   │  allocs/op   vs base                │
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean
geomean                                                              ³                +0.00%               ³

Performance Benchmarks

                                          │ base-perf.txt │            pr-perf.txt             │
                                          │    sec/op     │    sec/op     vs base              │
Codegen_BlockMainnet/UnmarshalReader-4       77.01µ ± ∞ ¹   75.15µ ± ∞ ¹  -2.42% (p=0.008 n=5)
Codegen_BlockMainnet/Marshal-4               17.75µ ± ∞ ¹   17.56µ ± ∞ ¹  -1.06% (p=0.008 n=5)
Codegen_BlockMainnet/MarshalWriter-4         23.63µ ± ∞ ¹   23.24µ ± ∞ ¹  -1.64% (p=0.008 n=5)
Codegen_BlockMinimal/Unmarshal-4             55.81µ ± ∞ ¹   55.30µ ± ∞ ¹  -0.92% (p=0.008 n=5)
Codegen_BlockMinimal/UnmarshalReader-4       77.95µ ± ∞ ¹   75.55µ ± ∞ ¹  -3.07% (p=0.008 n=5)
Codegen_StateMinimal/HashTreeRoot-4          61.64m ± ∞ ¹   61.77m ± ∞ ¹  +0.22% (p=0.016 n=5)
Reflection_BlockMainnet/Unmarshal-4          55.58µ ± ∞ ¹   56.19µ ± ∞ ¹  +1.10% (p=0.016 n=5)
Reflection_BlockMainnet/UnmarshalReader-4    77.62µ ± ∞ ¹   76.22µ ± ∞ ¹  -1.80% (p=0.008 n=5)
Reflection_BlockMainnet/Marshal-4            18.62µ ± ∞ ¹   17.76µ ± ∞ ¹  -4.59% (p=0.032 n=5)
Reflection_BlockMinimal/UnmarshalReader-4    76.61µ ± ∞ ¹   75.64µ ± ∞ ¹  -1.26% (p=0.008 n=5)
¹ need >= 6 samples for confidence interval at level 0.95
geomean                                      715.3µ         713.0µ        -0.32%

                                          │ base-perf.txt  │             pr-perf.txt             │
                                          │      B/op      │      B/op       vs base             │
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean
⁴ ratios must be >0 to compute geomean
geomean                                      78.35Ki                         ?               ³ ⁴

                                          │ base-perf.txt │             pr-perf.txt              │
                                          │   allocs/op   │  allocs/op    vs base                │
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean
geomean                                                 ³                 +0.00%               ³

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