From f648f17ec3dd9b99d6271f607d62004c321b7c8f Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Thu, 8 Aug 2024 00:21:26 +0300 Subject: feat(tvix): Jemalloc -> MiMalloc Use the faster and newer MiMalloc memory allocator for all endpoints in the workspace. Change-Id: Ic60237284ed168e46ec6e8f28e2710bae4385c6f Reviewed-on: https://cl.tvl.fyi/c/depot/+/12149 Tested-by: BuildkiteCI Reviewed-by: aspen --- tvix/build/src/bin/tvix-build.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tvix/build/src/bin/tvix-build.rs') 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 { -- cgit 1.4.1