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

List:       kde-optimize
Subject:    Re: qobject_cast
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2005-11-12 23:39:39
Message-ID: 200511130039.44024.ogoffart () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Le Samedi 12 Novembre 2005 12:48, Dirk Mueller a =E9crit=A0:
> On Saturday 12 November 2005 11:18, Olivier Goffart wrote:
> > After having doing some test, it seems that qobject_cast is 3 times
> > faster than dynamic_cast.
>
> that heavily depends on the compiler ;) The main difference is that
> qobject_cast more often works accross DSO boundaries, even if LTDL_LOCAL =
is
> used for dlopen'ing the module.

I don't understand that. I don't even know what LTDL_LOCAL is.

> also, dynamic_cast works in more cases than qobject_cast works (which
> relies on the types inheriting QObject iirc).

yes,  qobject_cast  only work with QObject deviated that have a QMetaObject.
But that's almost the case of all QObject anyway.


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

_______________________________________________
Kde-optimize mailing list
Kde-optimize@kde.org
https://mail.kde.org/mailman/listinfo/kde-optimize


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

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