[Interest] Tricks to improve moc performance?

Adam Light aclight at gmail.com
Sat Dec 7 00:10:41 CET 2019


On Fri, Dec 6, 2019 at 9:57 AM Thiago Macieira <thiago.macieira at intel.com>
wrote:

> On Friday, 6 December 2019 06:30:36 PST Adam Light wrote:
> > 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?
>
> Yes: https://github.com/qt/qtbase/blob/dev/util/includemocs/includemocs.pl
>
>
Thanks. That saved a lot of time.

For what it's worth, after changing all of our code to directly #include
the moc output, the total build time dropped by around 10%. That's helpful.

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


More information about the Interest mailing list