3 ms·
The Zig compiler does this on purpose in some cases, iirc. Free can be a waste of time if the program is going to die in half a second from now.
by zanderwohl 3y ago
The Zig compiler does this on purpose in some cases, iirc. Free can be a waste of time if the program is going to die in half a second from
now.
- toasterlovin 3y agoYeah, I first came across this strategy as a performance optimization in something Jared Sumner wrote about Bun (which is written in Zig).
- subtra3t 3y agoLink to devblog article/tweet?
- toasterlovin 3y agoCan't find it now, sorry. Can't remember if it was in a tweet or if it was an offhand comment in Bun documentation somewhere.