14 Aug
2008
14 Aug
'08
7:46 p.m.
On Thu, Aug 14, 2008 at 10:56 AM, Anteru
Peter Dimov schrieb:
In practice, the reason to disable RTTI is simple: it leads to smaller executables. Most of the size penalty comes from the typeid().name() strings, which need to be emitted conservatively for every polymorphic type.
Some numbers: I enabled RTTI testwise now, and my binaries are now 10% larger. (800 -> 880 kb). I had previously only exceptions enabled, but no RTTI. Compiler is VC9/x64
RTTI does have overhead, but if you want to use Boost Exception you have to enable RTTI. It uses it because it needs it. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode