joboccara / NamedType

Implementation of strong types in C++
MIT License
766 stars 85 forks source link

Overhead? #66

Closed kiliandys closed 2 years ago

kiliandys commented 2 years ago

Hi! I am using strong types to return PixelColor (3 x uint8) from a image cache library - that is used very intensively. Is using strong type introducing runtime overhead? Thank you!

joboccara commented 2 years ago

Hello, Thanks for your interest in the NamedType library. You'll have to measure on your system, but the measurements I had made suggest there is not much overhead, you can read more in this article.