Hacker News new | ask | show | jobs
by nemetroid 906 days ago
Successful dynamic_casts are fast. But failing dynamic_casts usually involve at least one strcmp and are extremely expensive.

https://gcc.gnu.org/legacy-ml/gcc-patches/2009-07/msg01239.h...

1 comments

For the particular set of tradeoffs made by C++. When rolling your own you don't have to do make the same choices.