[Interest] Tricks to improve moc performance?

Adam Light aclight at gmail.com
Fri Dec 6 15:30:36 CET 2019


On Fri, Dec 6, 2019 at 12:42 AM Uwe Rathmann <Uwe.Rathmann at tigertal.de>
wrote:

> On 12/6/19 2:09 AM, Adam Light wrote:
>
> > Does anyone else have any ideas of how we could change our build to
> > improve moc performance when Windows decides to be "slow"?
>
> Something you can try is to include the moc file at the end of your cpp
> file. This can be done like this:
>
> #include "moc_XYZ.cpp"
>
>
Yes, that's definitely on my TODO list, though I don't think it's going to
do much to address the current situation in which moc itself is the main
bottleneck. But any improvement will help.

Does anyone know of a script or other automated way to add these includes?

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191206/58322fa8/attachment.html>


More information about the Interest mailing list