On Thursday, 2 February 2023 at 10:47:19 UTC, Salih Dincer wrote:
It can be seen below that the structure (LimitedArray) implemented withunion is at least 15 times and at most 20 times faster.
Except that it isn't. How did you manage to get such ridiculous results? Even running your program compiled by LDC with optimizations gives me the following:
#line1 31 µs #line2 33 µs Percent %0 This isn't a proper way to do benchmarks.
