How expensive is RTTI?
I understand that there is a resource hit from using RTTI, but how big is it? Everywhere I've looked just says that "RTTI is expensive," but none of them actually give any benchmarks or quantitative data reguarding memory, processor time, or speed. So, just how expensive is RTTI? I might use it on an embedded system where I have only 4MB of RAM, so every bit counts. Edit: As per S. Lott's answer , it would be better if I include what I'm actually doing. I am using a class to pass in data of different lengths and that can perform different actions , so it would be difficult to do this using