summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2024-04-02 17:19:29 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2024-04-04 12:02:20 +0200
commita82d2a83e87eee8bb4e0025582bc4afed1a9b332 (patch)
treea53ed737038a0f27c96494e76338c90473756b9f /README.md
parent231b991edcf3853486e613c8c6fad0981a4af272 (diff)
downloadbootstrappable-toolchain-a82d2a83e87eee8bb4e0025582bc4afed1a9b332.tar.gz
musl-gcc: Ship mimalloc.o with musl GCCs
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 19f4c9c..6bc005f 100644
--- a/README.md
+++ b/README.md
@@ -198,6 +198,14 @@ Example configuration for bootstrapping on NixOS (hashes may vary):
}
~~~
+## Musl Performance Issues
+
+Musl has huge allocator contention issues with multithreading. For that reason,
+all our `musl` compilers are shipped with the alternative allocator
+[mimalloc](https://github.com/microsoft/mimalloc) that solves these issues. If
+you notice any performance slowdowns with your Musl-linked binaries, consider
+using the alternative allocator by appending `-l:mimalloc.o` to your `LDFLAGS`.
+
## License
All files are copyright Huawei Cloud Computing Technology Co., Ltd., license