|
|
|
|
|
by matheusmoreira
2420 days ago
|
|
It's actually the domain of build systems. Splitting code into as many independent files as possible gives the build system more data to work with, allowing it to compile more parts of the program in parallel only when necessary. If a file contains two functions and the developer changes one of them, both functions will be recompiled. If two files contain one function each, only the file with the changed function will be recompiled. Build times increase with language power and complexity as well as the size of the project. Avoiding needless work is always a major victory. |
|
https://mesonbuild.com/Unity-builds.html
http://onqtam.com/programming/2018-07-07-unity-builds/
https://buffered.io/posts/the-magic-of-unity-builds/