News for hackers. Stuff that matters.
Re:The Performance Impact of C++'s `final` Keyword by bandrami on Tuesday April 23, 2024 @12:51AM (#40128634)
If it's done badly, the same code that runs N times also gets cached N times because it's in N different locations in memory rather than one location that gets jumped to. Modern compilers and schedulers will eliminate a lot of that (but probably not for anything much smaller than a page), but in general there's always a tradeoff.

There are no comments on this comment yet.