diff options
author | Vincent Ambo <mail@tazj.in> | 2020-07-16T18·31+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-07-16T18·51+0000 |
commit | cb3d9675084f735c099c211edc4c8472f97a0578 (patch) | |
tree | 4888a8fdc264735fccca27ec86b25f5b69446724 /third_party/git/contrib/workdir | |
parent | 1ba5aa293bac0cd07421d5d1ba92c7fd8e2a5754 (diff) |
refactor(3p/nix/libexpr): Use range insertion to merge nix::Bindings r/1320
Instead of manually iterating over the two bindings to be combined, this adds a new static method on the Bindings class which merges two attribute sets by calling the range insertion operator over them. In some anecdotal tests, this can lead to a ~10% speed bump - depending on the specific operation. Change-Id: I5dea03b0589a83a789d3a8a0fc81d0d9e6598371 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1216 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'third_party/git/contrib/workdir')
0 files changed, 0 insertions, 0 deletions