RE: [GD-General] Overhead of RTTI
Brought to you by:
vexxed72
From: <phi...@pl...> - 2003-01-06 20:42:19
|
"Grills, Jeff" <jg...@so...>: > GCC's code gen for this stuff is apparently a fair bit better. I had a brief look at this, with the view to potentially replacing some hand-rolled RTTI that had caused some minor bugs (the problem with hand-rolled RTTI is entirely one of maintenance). IIRC, my only gripe with GCC was that it kept the RTTI tables seperate from the vtables. Although I'm sure there's a good reason for this, it was going to add yet another potential cache miss, and so out it went. I don't think I even looked at the dynamic_cast code, as I was just going to be comparing types. Although I'm now tempted to turn it on in debug builds, to assert the hand-rolled RTTI is working. Cheers, Phil |