[Qt-creator] Minimizing compile-time conditionals in Qt Creator
Michael Seydl
michael.seydl at gmail.com
Wed Aug 29 20:10:50 CEST 2012
Of course we do not know the function at hand, but my best guess would be that it's a quite simple one evaluating always true on Windows platforms. Therefore this function probably will be inlined. Which leads us to an always true conditional, which will be optimised out eventually. I don't think that it does matter in anyway if this method is static or not. Secondly there's runtime optimisation in any c++ compiler? I must have been living under a rock :)
So André's statement still holds.
greetz,
mike
On Aug 29, 2012, at 7:07 PM, Diego Iastrubni <diegoiast at gmail.com> wrote:
> On Tue, Aug 28, 2012 at 10:56 AM, Christian Kandeler <christian.kandeler at nokia.com> wrote:
> QStringList rc(QLatin1String(".svn"));
> if (Utils::HostOsInfo::isWindowsHost())
> rc.push_back(QLatin1String("_svn"));
> return rc;
>
> Please tell us that this method is static and the compiler knows how to optimize it at compilation time and not in runtime.
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120829/dccfea7a/attachment.html>
More information about the Qt-creator
mailing list