|
|
In article <3fdcfad6@news.povray.org> , Wolfgang Wieser <wwi### [at] gmxde>
wrote:
> If exceptions are slower than normal return, that won't hurt much
> because they are meant to be used as "exceptions". So, for exceptions
> my critisism was the size overhead.
>
> And for RTTI: I cannot imagine that a dynamic_cast has real little
> overhead but I honestly hope that it is the case until I run a test
> in the next days.
Effectively you only need it when using multiple inheritance. Of course, if
you depend on dynamic_cast heavily, you probably have some serious problem
understanding C++.
> Okay, my observations quoted above were based on my experiences on the
> gcc-2.7.3.2 -> gcc-2.8 transition and may very well be outdated.
One of the slowest known compilers around ... and outdated by half a decade.
> So, RTTI and exceptions still introduce considerable overhead even if
> not used.
Shitty compiler => shitty code! You should really use professional
compilers to base your comparisons on. Gcc's main feature is portability,
not performance.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|