Are large include files like iostream efficient? (C++)
- by Keand64
Iostream, when all of the files it includes, the files that those include, and so on and so forth, adds up to about 3000 lines.
Consider the hello world program, which needs no more functionality than to print something to the screen:
#include <iostream> //+3000 lines right there.
int main()
{
std::cout << "Hello, World!";
return 0;
}
this should be a very simple piece of code, but iostream adds 3000+ lines to a marginal piece of code. So, are these 3000+ lines of code really needed to simply display a single line to the screen, and if not, do they create a less efficient program than if I simply copied the relevant lines into the code?