Time to move std.experimental.checkedint to std.checkedint ?

tsbockman thomas.bockman at gmail.com
Wed Mar 31 04:50:02 UTC 2021


On Wednesday, 31 March 2021 at 04:26:28 UTC, Andrei Alexandrescu 
wrote:
> On 3/31/21 12:11 AM, tsbockman wrote:
>> Also, the Zig checked binaries are actually slightly smaller 
>> than the unchecked binaries for some reason.
>
> That's surprising so some investigation would be in order. From 
> what I tried on godbolt the generated code is strictly larger 
> if it uses checks.

Perhaps the additional runtime validation is causing reduced 
inlining in some cases? The test program I used has almost 300 
KiB of source code, so it may be hard to reproduce the effect 
with toy programs on godbolt.


More information about the Digitalmars-d mailing list