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/experimental-features.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/experimental-features.hh')
-rw-r--r-- | src/libutil/experimental-features.hh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libutil/experimental-features.hh b/src/libutil/experimental-features.hh index cc841c0a6..38889e7bc 100644 --- a/src/libutil/experimental-features.hh +++ b/src/libutil/experimental-features.hh @@ -1,9 +1,7 @@ #pragma once ///@file -#include "comparator.hh" #include "error.hh" -#include "json-utils.hh" #include "types.hh" namespace nix { @@ -53,13 +51,6 @@ const std::optional<ExperimentalFeature> parseExperimentalFeature( std::string_view showExperimentalFeature(const ExperimentalFeature); /** - * Compute the documentation of all experimental features. - * - * See `doc/manual` for how this information is used. - */ -nlohmann::json documentExperimentalFeatures(); - -/** * Shorthand for `str << showExperimentalFeature(feature)`. */ std::ostream & operator<<( @@ -87,17 +78,4 @@ public: MissingExperimentalFeature(ExperimentalFeature missingFeature); }; -/** - * Semi-magic conversion to and from json. - * See the nlohmann/json readme for more details. - */ -void to_json(nlohmann::json &, const ExperimentalFeature &); -void from_json(const nlohmann::json &, ExperimentalFeature &); - -/** - * It is always rendered as a string - */ -template<> -struct json_avoids_null<ExperimentalFeature> : std::true_type {}; - } |