[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: dynamic_cast performance overhead
From:       Michael Buesch <mbuesch () freenet ! de>
Date:       2005-06-03 12:31:26
Message-ID: 200506031431.26153.mbuesch () freenet ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Quoting Sunil <funtoos@yahoo.com>:
> does compiler optimize uses such as this:
> ----------
> ./kate/part/kateschema.cpp:
> 
> void KateStyleListView::showPopupMenu(
> KateStyleListItem *i, const QPoint &globalPos, bool
> showtitle )
>                                                       
>            ^^^^^^^^^^^^^
> {
>   if ( !dynamic_cast<KateStyleListItem*>(i) ) return;
>                                 ^^^^^^^^^^^^^
> ----------

You should not do such code in the first place.


-- 
Greetings, Michael



[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic