diff options
author | pennae <github@quasiparticle.net> | 2022-01-12 16:02:29 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-01-13 13:51:29 +0100 |
commit | 44c92a1667ce829518178a77a9de0a53609d284f (patch) | |
tree | 9405bda15c74a4341f9a8c79d92a990d57598f9c /src/libutil/local.mk | |
parent | e61c4bc25a876ce303022435342748cafeced010 (diff) |
use more string_view in utils
there's a couple places that can be easily converted from using strings to using
string_views instead. gives a slight (~1%) boost to system eval.
# before
nix eval --raw --impure --expr 'with import <nixpkgs/nixos> {}; system'
Time (mean ± σ): 2.946 s ± 0.026 s [User: 2.655 s, System: 0.209 s]
Range (min … max): 2.905 s … 2.995 s 20 runs
# after
Time (mean ± σ): 2.928 s ± 0.024 s [User: 2.638 s, System: 0.211 s]
Range (min … max): 2.893 s … 2.970 s 20 runs
Diffstat (limited to 'src/libutil/local.mk')
0 files changed, 0 insertions, 0 deletions