3 ms·
No template in user interfaces.
by Barenboim 5y ago
No template in user interfaces.
- jcelerier 5y agoHow is that an advantage ? either you have N overloads doing manually what templates do automatically, or you have indirection and the implied performance loss
- 10000truths 5y agoHave you ever compiled a project using ASIO? The template crap everywhere makes build times miserable.
- jcelerier 5y agoI use asio in all my network-using projects. It doesn't particularly bother me, the files that use asio take a few seconds to build ?
- 10000truths 5y agoThose few seconds can add up very quickly when you’re making incremental changes and have to keep recompiling. I ended up having to write non-template wrappers for all my ASIO stuff and compile them as a separate object file, in order to keep my workflow manageable. Building that one object file would double my total build time.
- jcelerier 5y agoI've actually done that all day long, at most it takes 3-4 seconds between code editing and the app / test running, I'd definitely not trade faster build times for something else in that case, especially when my IDE highlights errors when I type which greatly reduces the need for constant rebuilds.