about summary refs log tree commit diff
path: root/users/edef/weave/Cargo.nix
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2024-10-19T13·58+0000
committeredef <edef@edef.eu>2024-10-19T17·01+0000
commit201d8f0cf2dd3b959bde91012c62ea5d3d714820 (patch)
tree3584459985d9268bf9ddf020919683efadb9a9df /users/edef/weave/Cargo.nix
parent06d2536eec88bfcfd2388e3ca153ba99815b7e97 (diff)
feat(users/edef/weave): use FxHashSet and dedupe early r/8846
Deduping early saves a fair bit of memory, but the extra hashing is
costly.

We switch to FxHash, since we don't need a DoS-proof hash, but we do
need it to be *fast*.

Change-Id: Ic6b7010874c417862baa9b882593208c8dd1d5e6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12648
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/edef/weave/Cargo.nix')
-rw-r--r--users/edef/weave/Cargo.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/users/edef/weave/Cargo.nix b/users/edef/weave/Cargo.nix
index c34a03b6876b..0fd5eeed1724 100644
--- a/users/edef/weave/Cargo.nix
+++ b/users/edef/weave/Cargo.nix
@@ -5446,6 +5446,21 @@ rec {
           "rustc-dep-of-std" = [ "core" "compiler_builtins" ];
         };
       };
+      "rustc-hash" = rec {
+        crateName = "rustc-hash";
+        version = "2.0.0";
+        edition = "2021";
+        sha256 = "0lni0lf846bzrf3jvci6jaf4142n1mdqxvcpczk5ch9pfgyk8c2q";
+        libName = "rustc_hash";
+        authors = [
+          "The Rust Project Developers"
+        ];
+        features = {
+          "default" = [ "std" ];
+          "rand" = [ "dep:rand" "std" ];
+        };
+        resolvedDefaultFeatures = [ "default" "std" ];
+      };
       "rustc_version" = rec {
         crateName = "rustc_version";
         version = "0.4.1";
@@ -6767,6 +6782,10 @@ rec {
             packageId = "rayon";
           }
           {
+            name = "rustc-hash";
+            packageId = "rustc-hash";
+          }
+          {
             name = "safer_owning_ref";
             packageId = "safer_owning_ref";
           }