simdjson/examples/quickstart
strager d036fdf919
Reduce #include bloat (<iostream>) (#1697)
Including <iostream> has two problems:

* Compile times are worse because of over-inclusion
* Binary sizes are worse when statically linking libstdc++ because
  iostreams cannot be dead-code-stripped

simdjson only needs std::ostream. Include the header declaring only what
we need (<ostream>), omitting stuff we don't need (std::cout and its
initialization, for example).

This commit should not change behavior, but it might break users who
assume that including <simdjson/simdjson.h> will make std::cout
available (such as many of simdjson's own files).
2021-08-13 11:24:36 -04:00
..
CMakeLists.txt Add quick start for On Demand 2021-01-01 14:50:47 -08:00
Makefile Compile under C++ 11 2020-04-08 14:00:13 -07:00
add_quickstart_test.cmake Add quick start for On Demand 2021-01-01 14:50:47 -08:00
quickstart.cpp Reduce #include bloat (<iostream>) (#1697) 2021-08-13 11:24:36 -04:00
quickstart2.cpp Reduce #include bloat (<iostream>) (#1697) 2021-08-13 11:24:36 -04:00
quickstart2_noexceptions.cpp Reduce #include bloat (<iostream>) (#1697) 2021-08-13 11:24:36 -04:00
quickstart_noexceptions.cpp Reduce #include bloat (<iostream>) (#1697) 2021-08-13 11:24:36 -04:00
quickstart_ondemand.cpp Reduce #include bloat (<iostream>) (#1697) 2021-08-13 11:24:36 -04:00
quickstart_ondemand_noexceptions.cpp Reduce #include bloat (<iostream>) (#1697) 2021-08-13 11:24:36 -04:00