Skip to content

Commit 0feb287

Browse files
goffrieConvex, Inc.
authored andcommitted
Turn on fast-rng feature of uuid (#38273)
Without this, each call to `Uuid::new_v4()` makes a `getrandom()` syscall which is surprisingly slow. GitOrigin-RevId: 668df08b6bce12c04f01da8a3dc6fcc444531a74
1 parent ecf7a99 commit 0feb287

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ tungstenite = { version = "0.26.2", features = [ "url", "native-tls-vendored" ]
182182
url = "2.5.4"
183183
urlencoding = "2.1.3"
184184
utoipa = { version = "5.3", features = [ "axum_extras" ] }
185-
uuid = { version = "1.6", features = [ "serde", "v4" ] }
185+
uuid = { version = "1.6", features = [ "fast-rng", "serde", "v4" ] }
186186
vergen = { version = "8.1.0" }
187187
walkdir = "2"
188188
xorf = { git = "https://github.com/sujayakar/xorf.git", rev = "62a32de47bb3ad8b34d6d4feac034a24be2c881a" }

0 commit comments

Comments
 (0)