4 ms·
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
by nemetroid 3y 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.html https://gcc.gnu.org/legacy-ml/gcc-patches/2009-07/msg01239.h...
- o11c 3y agoFor the particular set of tradeoffs made by C++. When rolling your own you don't have to do make the same choices.