[Interest] Tricks to improve moc performance?

Thiago Macieira thiago.macieira at intel.com
Sat Dec 7 03:01:06 CET 2019


On Friday, 6 December 2019 10:06:24 PST Richard Weickelt wrote:
> > This solution gets you a single build for all the the mocs, which is good,
> > but won't generate the best code that Peppe was talking about. You want
> > the moc for a given class to be in the class's own .cpp.
> 
> Unless you build with link-time optimization enabled, I suppose. Because
> then translation units are no longer an optimization boundary.

I don't know if it triggers this warning in LTO mode. I usually consider them 
complementary options, so best to use both.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products





More information about the Interest mailing list