News for hackers. Stuff that matters.
Re:When zero cost abstractions aren't zero cost by jokethrowaway on Monday August 09, 2021 @10:43PM (#28124682)
That first example is misleading.

It's doing different things: In the first case it's not doing anything and it will request memory dynamically. In the second case it's zeroing 16gb of RAM.

The explanation linked at the end explains it better.

Re:When zero cost abstractions aren't zero cost by davrosthedalek on Monday August 09, 2021 @10:54PM (#28124736)
Yeah, but taking >5s to zero 16GB is still atrociously slow.