Skip to content

Conversation

@arnetheduck
Copy link
Member

@arnetheduck arnetheduck commented Dec 15, 2025

The VM is slow at instantiating large types like the beacon state at compile time, hence it takes >10s to perform this check.

A macro similar to nim-serialization could be developed instead to replace fieldPairs which here is only used to reason about type, but still needs an actual instance.

takes >10s compile time, every time ..
@arnetheduck arnetheduck changed the title Only check isomorpism of types in debug compiles Only check isomorphism of types in debug compiles Dec 15, 2025
@github-actions
Copy link

github-actions bot commented Dec 15, 2025

Unit Test Results

       12 files  ±0    2 436 suites  ±0   49m 49s ⏱️ + 2m 14s
12 678 tests ±0  12 113 ✔️ ±0  565 💤 ±0  0 ±0 
63 716 runs  ±0  62 988 ✔️ ±0  728 💤 ±0  0 ±0 

Results for commit afd89c4. ± Comparison against base commit a49ed22.

♻️ This comment has been updated with latest results.

`default(T)` must create a T in the compiler VM which is slow
@arnetheduck arnetheduck enabled auto-merge (squash) December 18, 2025 07:44
@arnetheduck arnetheduck merged commit d6167e1 into unstable Dec 18, 2025
11 checks passed
@arnetheduck arnetheduck deleted the ct-iso branch December 18, 2025 08:46
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