diff options
Diffstat (limited to 'tvix/build')
-rw-r--r-- | tvix/build/Cargo.toml | 1 | ||||
-rw-r--r-- | tvix/build/src/bin/tvix-build.rs | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tvix/build/Cargo.toml b/tvix/build/Cargo.toml index c0cf86408087..8bb68783f0ea 100644 --- a/tvix/build/Cargo.toml +++ b/tvix/build/Cargo.toml @@ -16,6 +16,7 @@ tvix-castore = { path = "../castore" } tvix-tracing = { path = "../tracing" } tracing = "0.1.40" url = "2.4.0" +mimalloc = "0.1.43" [dependencies.tonic-reflection] optional = true diff --git a/tvix/build/src/bin/tvix-build.rs b/tvix/build/src/bin/tvix-build.rs index 7f077a88dd8f..93e85871caab 100644 --- a/tvix/build/src/bin/tvix-build.rs +++ b/tvix/build/src/bin/tvix-build.rs @@ -17,6 +17,11 @@ use tvix_build::proto::FILE_DESCRIPTOR_SET; #[cfg(feature = "tonic-reflection")] use tvix_castore::proto::FILE_DESCRIPTOR_SET as CASTORE_FILE_DESCRIPTOR_SET; +use mimalloc::MiMalloc; + +#[global_allocator] +static GLOBAL: MiMalloc = MiMalloc; + #[derive(Parser)] #[command(author, version, about, long_about = None)] struct Cli { |