Why is it faster to use multiple files instead of one? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is it faster to use multiple files instead of one?

For instance, header files in C++ are faster than having one main.cpp, and external css files are raster than inline/embedded.

9th Apr 2019, 11:39 PM
Cheese Burger Joe
Cheese Burger Joe - avatar
2 Answers
+ 2
Is it? I personally haven't read anything that says having separate files is faster. I also haven't read (or don't remember probably) anything that says it's slower either. Maybe post your source or the quote you found that says this.
10th Apr 2019, 4:07 AM
Zeke Williams
Zeke Williams - avatar
+ 1
~ swim ~ I can see how compilation could be interpreted as "slower", but they mention CSS files too.
10th Apr 2019, 12:49 PM
Zeke Williams
Zeke Williams - avatar