diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-03-18 23:06:34 -0700 |
---|---|---|
committer | jade <lix@jade.fyi> | 2024-03-27 03:52:57 +0000 |
commit | edba570664b952facde43fd0414e60f0a42851da (patch) | |
tree | 64a9528f4c5908a55db47662a1a971db88b3ce87 /src/libutil/logging.hh | |
parent | 412a9c9f6719a6c62e8f5b6265714428d2ad4013 (diff) |
HOT SALE: 15% off your build times!
This was achieved by running maintainers/buildtime_report.sh on the
build directory of a meson build, then asking "why the heck is json
eating our build times", and strategically moving the json using bits
out of widely included headers.
It turns out that putting literally any metrics whatsoever into the
build had immediate and predictable results.
Results are 1382.5s frontend time -> 1175.4s frontend time, back end
time approximately invariant.
Related: https://git.lix.systems/lix-project/lix/issues/159
Change-Id: I7edea95c8536203325c8bb4dae5f32d727a21b2d
Diffstat (limited to 'src/libutil/logging.hh')
-rw-r--r-- | src/libutil/logging.hh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh index 7a6341d70..dc6f53d77 100644 --- a/src/libutil/logging.hh +++ b/src/libutil/logging.hh @@ -5,8 +5,6 @@ #include "error.hh" #include "config.hh" -#include <nlohmann/json_fwd.hpp> - namespace nix { typedef enum { @@ -184,16 +182,6 @@ Logger * makeSimpleLogger(bool printBuildLogs = true); Logger * makeJSONLogger(Logger & prevLogger); -std::optional<nlohmann::json> parseJSONMessage(const std::string & msg); - -bool handleJSONLogMessage(nlohmann::json & json, - const Activity & act, std::map<ActivityId, Activity> & activities, - bool trusted); - -bool handleJSONLogMessage(const std::string & msg, - const Activity & act, std::map<ActivityId, Activity> & activities, - bool trusted); - /** * suppress msgs > this */ |