Allocation depending on value of typed field in struct

It’s probably just benchmarking artefacts. It’s difficult to get good, accurate timings of operations that are essentially free. In statically inferred code this should not take any time at all.

1 Like