this post was submitted on 01 Aug 2023
13 points (100.0% liked)
C++
1783 readers
1 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
They are relatively cheap, but I think cheap does not mean free and some references mention a performance hit that can be as high as 7%.
Yeah, because of this performance hit.
One of the cool things about this article is the fact that it points out how adding 'final' can magically get rid of that performance hit.