From kde-optimize Sat Nov 12 11:48:50 2005 From: Dirk Mueller Date: Sat, 12 Nov 2005 11:48:50 +0000 To: kde-optimize Subject: Re: qobject_cast Message-Id: <200511121248.51379.mueller () kde ! org> X-MARC-Message: https://marc.info/?l=kde-optimize&m=113179616111946 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. also, dynamic_cast works in more cases than qobject_cast works (which relies on the types inheriting QObject iirc). -- Dirk//\ _______________________________________________ Kde-optimize mailing list Kde-optimize@kde.org https://mail.kde.org/mailman/listinfo/kde-optimize