Skip to content

Commit

Permalink
Use mimalloc as global memory allocator (#749)
Browse files Browse the repository at this point in the history
This should make allocation behavior more consistent across different
builds and reduce memory fragmentation issues.

The allocation behavior of the `nativelink` executable is now
configurable with `MIMALLOC_*` environment variables as described here:

https://microsoft.github.io/mimalloc/environment.html
  • Loading branch information
aaronmondal authored Mar 12, 2024
1 parent cea2336 commit 6c647d6
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 54 deletions.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ rust_binary(
"@crates//:console-subscriber",
"@crates//:futures",
"@crates//:hyper",
"@crates//:mimalloc",
"@crates//:parking_lot",
"@crates//:prometheus-client",
"@crates//:rustls-pemfile",
Expand Down
Loading

0 comments on commit 6c647d6

Please sign in to comment.