<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QtCreator &amp; Jom: Slow compile on a high-end desktop]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I have bought new desktop with specs below to improve compile time.<br />
Processor: Intel Sandy Bridge-E I7-3930K, 3.20GHz, 6 Cores, 12 Threads, 12MB Cache, 64bit, DDR3-1600MHz, Socket 2011<br />
Memory: Corsair 16GB DDR3, 2133MHz<br />
SSD Disk: Kingston 240GB SSDNow HyperX SATA 6.0Gb/s</p>
<p dir="auto">Running on Windows 7 64bit, QtSDK 1.2.1 with Jom setup for build steps and MSVC 2010 x86 compiler. My project links against parts of Boost library (headers only), Qt libs are dynamically linked and I have only one main cpp file. Compile time is around 40s. I placed the whole project on RAM Disk but speed improved only by 1 sec. The CPU usage (all 6 cores combined) during compilation is ONLY 8%.</p>
<p dir="auto">I expected much faster compile speed compared to Dual Core 1.8GHz, 1.5GB RAM machine. Is there anything I can configure to improve the speed? I suspect that the CPU is not really utilized.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/21068/qtcreator-jom-slow-compile-on-a-high-end-desktop</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 19:23:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/21068.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Nov 2012 13:35:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QtCreator &amp; Jom: Slow compile on a high-end desktop on Fri, 02 Nov 2012 19:23:27 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="koahnig" date="1351875981"][quote author="Marcus Frenkel" date="1351874922"][quote author="ZapB" date="1351865052"]If you only have one cpp file then only one core will be used...[/quote]</p>
<p dir="auto">Any workaround to make it work with single cpp file?<br />
[/quote]<br />
No, if you have only a single file AFAIK it has to be compiled in one run. You would need a special multi-threaded compiler. The best way to do so is having different modules which require only short compile runs each.<br />
Jom basically starts several compiler instances in parallel. That brings the speed.<br />
Moreover, you should really consider breaking up your code into several modules. The different makes are supporting to have partial compilation of the code by checking which files have been changed.<br />
Without using jom you would have already a speedup of compilation.<br />
[/quote]</p>
<p dir="auto">I broke up the code into more CPP files. I found out that the most time consuming part is linking the boost library. So I couldn't get any improvement because it is only one class that uses the boost library (small code in my project but loads many boost's headers). I ended up using pre-compiled headers for boost and now the compile speed is good enough.</p>
]]></description><link>https://forum.qt.io/post/156034</link><guid isPermaLink="true">https://forum.qt.io/post/156034</guid><dc:creator><![CDATA[marcus.fr]]></dc:creator><pubDate>Fri, 02 Nov 2012 19:23:27 GMT</pubDate></item><item><title><![CDATA[Reply to QtCreator &amp; Jom: Slow compile on a high-end desktop on Fri, 02 Nov 2012 17:06:21 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Marcus Frenkel" date="1351874922"][quote author="ZapB" date="1351865052"]If you only have one cpp file then only one core will be used...[/quote]</p>
<p dir="auto">Any workaround to make it work with single cpp file?<br />
[/quote]<br />
No, if you have only a single file AFAIK it has to be compiled in one run. You would need a special multi-threaded compiler. The best way to do so is having different modules which require only short compile runs each.<br />
Jom basically starts several compiler instances in parallel. That brings the speed.<br />
Moreover, you should really consider breaking up your code into several modules. The different makes are supporting to have partial compilation of the code by checking which files have been changed.<br />
Without using jom you would have already a speedup of compilation.</p>
]]></description><link>https://forum.qt.io/post/156021</link><guid isPermaLink="true">https://forum.qt.io/post/156021</guid><dc:creator><![CDATA[koahnig]]></dc:creator><pubDate>Fri, 02 Nov 2012 17:06:21 GMT</pubDate></item><item><title><![CDATA[Reply to QtCreator &amp; Jom: Slow compile on a high-end desktop on Fri, 02 Nov 2012 16:48:42 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="ZapB" date="1351865052"]If you only have one cpp file then only one core will be used...[/quote]</p>
<p dir="auto">Any workaround to make it work with single cpp file?</p>
]]></description><link>https://forum.qt.io/post/156022</link><guid isPermaLink="true">https://forum.qt.io/post/156022</guid><dc:creator><![CDATA[marcus.fr]]></dc:creator><pubDate>Fri, 02 Nov 2012 16:48:42 GMT</pubDate></item><item><title><![CDATA[Reply to QtCreator &amp; Jom: Slow compile on a high-end desktop on Fri, 02 Nov 2012 14:18:44 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="ZapB" date="1351865052"]If you only have one cpp file then only one core will be used. Linking is still single threaded too I think. Try breaking your one large cpp file into smaller compilation units. That should speed up compilation but you will still be limited by link time.[/quote]</p>
<p dir="auto">I was hoping that breaking the code into more cpp files will not be necessary :(</p>
]]></description><link>https://forum.qt.io/post/156010</link><guid isPermaLink="true">https://forum.qt.io/post/156010</guid><dc:creator><![CDATA[marcus.fr]]></dc:creator><pubDate>Fri, 02 Nov 2012 14:18:44 GMT</pubDate></item><item><title><![CDATA[Reply to QtCreator &amp; Jom: Slow compile on a high-end desktop on Fri, 02 Nov 2012 14:11:00 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Tobias Hunger" date="1351863907"]How many cpp files are there in total to be build?[/quote]</p>
<p dir="auto">It has only one cpp file, that is "main.cpp" with about 10000 lines. There are small project's header files and boost headers (.hpp) files. Qt lib DLLs are dynamically linked.</p>
]]></description><link>https://forum.qt.io/post/156008</link><guid isPermaLink="true">https://forum.qt.io/post/156008</guid><dc:creator><![CDATA[marcus.fr]]></dc:creator><pubDate>Fri, 02 Nov 2012 14:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to QtCreator &amp; Jom: Slow compile on a high-end desktop on Fri, 02 Nov 2012 14:04:12 GMT]]></title><description><![CDATA[<p dir="auto">If you only have one cpp file then only one core will be used. Linking is still single threaded too I think. Try breaking your one large cpp file into smaller compilation units. That should speed up compilation but you will still be limited by link time.</p>
]]></description><link>https://forum.qt.io/post/156006</link><guid isPermaLink="true">https://forum.qt.io/post/156006</guid><dc:creator><![CDATA[ZapB]]></dc:creator><pubDate>Fri, 02 Nov 2012 14:04:12 GMT</pubDate></item><item><title><![CDATA[Reply to QtCreator &amp; Jom: Slow compile on a high-end desktop on Fri, 02 Nov 2012 13:45:07 GMT]]></title><description><![CDATA[<p dir="auto">How many cpp files are there in total to be build?</p>
]]></description><link>https://forum.qt.io/post/156005</link><guid isPermaLink="true">https://forum.qt.io/post/156005</guid><dc:creator><![CDATA[tobias.hunger]]></dc:creator><pubDate>Fri, 02 Nov 2012 13:45:07 GMT</pubDate></item></channel></rss>