14
submitted 2 weeks ago by lysdexic to c/cpp
top 3 comments
sorted by: hot top controversial new old
[-] QuadriLiteral 2 points 2 weeks ago* (last edited 2 weeks ago)

Such gains by limiting included headers is surprising to me, as it's the first thing anyone would suggest doing. Clang-tidy hints in QtCreator show warnings for includes that are not used. For me this works pretty well to keep build times due to headers under control. I wonder, if reducing the amount of included headers already yields such significant gains, what other gains can be had, and what LOC we're talking about. I've seen dramatic improvements by using pch for instance. Or isolating boost usage.

[-] lysdexic 2 points 2 weeks ago* (last edited 2 weeks ago)

Such gains by limiting included headers is surprising to me, as it’s the first thing anyone would suggest doing.

Yes indeed. I think this is a testament of the loss of know-how we're seeing in software engineering in general, and how overambitious but underworking developers try to stake claims in technical expertise when they even failed to onboard onto the very basics of a tech stack.

I'm sure it's a matter of time before there's a new post in Figma's blog showing off their latest advanced technique to drive down build times: onboarding ccache. Followed by another blog post on how Figma is researching cutting edge distributed computing techniques to optimize build times by replacing ccache with sccache.

[-] [email protected] 3 points 2 weeks ago

TIL about sccache, thanks

this post was submitted on 27 Apr 2024
14 points (100.0% liked)

C++

1583 readers
10 users here now

The center for all discussion and news regarding C++.

Rules

founded 11 months ago
MODERATORS