News for hackers. Stuff that matters.
Re:A safe, non-owning C++ pointer class by loeg on Monday September 29, 2025 @02:18AM (#45410822)
The actual intrinsic is like 8-9 cycles on Zen4 or Ice Lake (vs 1 for plain add). It's something if you're banging on it in a hot loop, but otherwise not a ton. (If refcounting is hot in your design, your design is bad.)

It's comparable to like, two integer multiplies, or a single integer division. Yes, there is some effect on program order.

There are no comments on this comment yet.