<p>Also I will just throw an observation out there that trying to minimise headers may not be the way to go.</p>
<p>The C++ project I'm working on compiled significantly faster when it moved from individual includes to a single include which included <em>all</em> the others.  At the time I didn't measure the improvement or investigate why that happened.  I was just happy as I was actually expecting it to be slightly slower.</p>
<p>Perhaps GCC or meson uses some sort of caching which it can activate if it observes the same includes, which the single include guarantees, and guarantees to be in the same order.</p>
<p>On the other hand if the linking is the slow part twiddling the includes won't help.  <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1107820" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ntrel">@ntrel</a> can you put figures on your "slow" so we know its not just that you are nearly as impatient as me.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2305?email_source=notifications&email_token=AAIOWJY2Z5LBPNZU4JAJQODQKFEU3A5CNFSM4IW4GLQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD657LYY#issuecomment-532411875">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZUH74NUNM5DTJSZS3QKFEU3ANCNFSM4IW4GLQA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3CHUQGEYWFDPKTPNTQKFEU3A5CNFSM4IW4GLQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD657LYY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2305?email_source=notifications\u0026email_token=AAIOWJY2Z5LBPNZU4JAJQODQKFEU3A5CNFSM4IW4GLQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD657LYY#issuecomment-532411875",
"url": "https://github.com/geany/geany/issues/2305?email_source=notifications\u0026email_token=AAIOWJY2Z5LBPNZU4JAJQODQKFEU3A5CNFSM4IW4GLQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD657LYY#issuecomment-532411875",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>