4 ms·
> No STL, it causes to much bloat when binary size is critical > A. Learn templates, especially c++20. Templates add ZERO bloat, they literally just generate t
by dataflow 3y ago
> No STL, it causes to much bloat when binary size is critical
> A. Learn templates, especially c++20. Templates add ZERO bloat, they literally just generate the function again with proper types
"Avoid STL due to bloat but embrace templates" doesn't make sense to me.
Isn't that exactly what code bloat is? Too much code generation?
- Two4 3y agoBloat can also refer to the invisible infrastructure code that's compiled into a binary when using certain language features. C has a fairly linear relationship to the size of the compiled assembly, iirc, but C++ will vary wildly based on which features you use.
- aa-jv 3y agoIndeed, it is a common refrain among C++ programmers to inspect ones binaries, I have found ..