News for hackers. Stuff that matters.
Re:Reference count, don't garbage collect by dataflow on Saturday July 30, 2022 @05:26AM (#32285440)
> which will be the first thing the deleter will check for and bail out.

The point is that check itself is an extra instruction (or two, rather) that would otherwise be skipped entirely.

I'm not saying this commonly makes a difference. I'm just saying this might be something that does make a difference for them in their particular use case.

Also note that I was trying to describe the general phenomenon with a simple example, but this obviously isn't limited to std::unique_ptr.

There are no comments on this comment yet.