Global: Change <iostream> include into <ostream>

<iostream> injects a static constructor into every translation unit that
includes the header--even if nothing from the header is used. This can
result in minor initial program slowdown, as all of these constructors
need to run before main() can execute.

Instead, we can use <ostream>, which includes all of the necessary
machinery that we need.
This commit is contained in:
Lioncash 2019-08-15 20:03:56 -04:00
parent 2f5dbc11ed
commit d36b7bdc3f
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <iostream> #include <ostream>
#include "athena/Types.hpp" #include "athena/Types.hpp"
#define FMT_STRING_ALIAS 1 #define FMT_STRING_ALIAS 1

View File

@ -2,6 +2,7 @@
#include "athena/Utility.hpp" #include "athena/Utility.hpp"
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <iostream>
#define FMT_STRING_ALIAS 1 #define FMT_STRING_ALIAS 1
#define FMT_ENFORCE_COMPILE_STRING 1 #define FMT_ENFORCE_COMPILE_STRING 1