Hacker GitHub

← All repos

microsoft/mimalloc

View on GitHub ↗ ★ 13,526 C

mimalloc is a compact general purpose allocator with excellent performance.

30 mentions on Hacker News by 27 people: 3 stories, 27 comments · first 2019-06-22 · latest 2026-06-21

Mentions per year 30 mentions · busiest year 2021 (5)
20082026
  1. Take a look at https://github.com/concurrencykit/ck and https://github.com/microsoft/mimalloc , it will fit well for a zero-copy and mem aligned reverse proxy. Also, if you want to add a DDoS protection and more advanced L4 stuff check out…
    comment by spliffedr · 2026-06-21 · in Epoll vs. io_uring in Linux
  2. …current state of Musl on Alpine, but Musl can be built with https://en.wikipedia.org/wiki/Mimalloc https://github.com/microsoft/mimalloc as https://en.wikipedia.org/wiki/Chimera_Linux / https://chimera-linux.org/ does. Which btw. can be…
    comment by LargoLasskhyfv · 2025-05-22 · in Our Journey Through Linux/Unix Landscapes
  3. https://github.com/microsoft/mimalloc?tab=readme-ov-file#per...
  4. https://github.com/microsoft/mimalloc we're using it in feldera and it's been giving us (slightly) better performance than jemalloc which is what we've used before mimalloc
  5. …the mimalloc allocator [0] can be configured as a drop-in replacement for the libc allocator.) [0] https://github.com/microsoft/mimalloc
    comment by LegionMammal978 · 2025-03-18 · in Stupid Smart Pointers in C
  6. …immediately obvious to me that the code was written with that type of compatibility in mind. [0]: https://github.com/microsoft/mimalloc
  7. …mi_collect[1] in the allocating thread (the Rust crate does not seem to expose this API). [1]: https://github.com/microsoft/mimalloc/blob/dev/src/heap.c#L1...
  8. ▲ 3
    Mimalloc: High performance general purpose allocator
    story by nateb2022 · 2023-12-29 · 0 comments
  9. …CPU to test it on, but note that most programs are compiled for a relatively generic CPU. [0]: https://github.com/microsoft/mimalloc/issues/807
    comment by Vecr · 2023-11-15 · in Reptar
  10. …from Paradox Interactive (Victoria 3) team found something related to that and mimalloc -> https://github.com/microsoft/mimalloc/issues/807 Not sure if fully related, but possibly.
    comment by malkia · 2023-11-14 · in Reptar
  11. …problem, not only is there a lot of performance to squeeze out of malloc itself (the benchmarks on https://github.com/microsoft/mimalloc exemplifies the variance between the implementations), but it's up to the programmer to implement…
    comment by kryptiskt · 2023-04-24 · in Z Garbage Collector: The Next Generation
  12. I hoped to see benchmark comparisons with newer allocators like mimalloc https://github.com/Microsoft/mimalloc and snmalloc https://github.com/Microsoft/snmalloc as well as the older workhorses like jemalloc, hoard, tcmalloc...
  13. …I also wouldn't expect it to be somehow pushed as the default choice for Windows allocators. [1]: https://github.com/microsoft/mimalloc/graphs/contributors
  14. …support sbrk (I think jemalloc still does). Mimalloc seems to have some interesting features. [0] https://github.com/microsoft/mimalloc
  15. …performance in concurrent environments. [1]: https://koka-lang.github.io/koka/doc/index.html [2]: https://github.com/microsoft/mimalloc
  16. How does this compare mimalloc, the other allocator from Microsoft? https://github.com/microsoft/mimalloc
  17. ▲ 3
    Mimalloc:a compact general purpose allocator with excellent performance
    story by homarp · 2022-03-13 · 0 comments
  18. …allocator (MIT license) a try? It appears to benchmark better than even jemalloc and others. https://github.com/microsoft/mimalloc#Performance
  19. …implementation, while Koka is 50% slower (similar to other C/C++ and Rust implementations). [0]: https://github.com/microsoft/mimalloc [1]: https://news.ycombinator.com/item?id=25464354
  20. I think it's both. Mimalloc had to use a different register: https://github.com/microsoft/mimalloc/issues/343
    comment by tyingq · 2021-04-16 · in Docker Desktop for Mac (Apple Silicon)
  21. …other ARMV7 cpus, and that fact wasn't documented. Mimalloc had to trudge through the same thing: https://github.com/microsoft/mimalloc/issues/343
  22. Microsoft's mimalloc looks interesting also: https://github.com/microsoft/mimalloc HN discussion from 2019: https://news.ycombinator.com/item?id=20249743
  23. …practical mimalloc allocator came out of that work as well. https://github.com/koka-lang/koka https://github.com/microsoft/mimalloc
  24. …allocator is lock-free. Perhaps there's something in there that'd be interesting to read. https://github.com/microsoft/mimalloc https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-atomic.h It has gone through testing with…
    comment by Jason_Gibson · 2020-12-01 · in ARM and Lock-Free Programming
  25. …is `L >> PAGESHIFT` to use the ASLR randomized bits from the free list position `L`. In [mimalloc]( https://github.com/microsoft/mimalloc ) we use a similar strategy to protect the free list in secure mode. However, there are some…
  26. code: https://github.com/microsoft/mimalloc
  27. We tried mimalloc in ClickHouse and it is two times slower than jemalloc in our common use case https://github.com/microsoft/mimalloc/issues/11
  28. They claim to perform well on at least some multi-thread workloads (read https://github.com/microsoft/mimalloc#performance ): "The larson server workload allocates and frees objects between many threads. Larson and Krishnan [2] observe…
  29. ▲ 356
    Mimalloc – A compact general-purpose allocator
    story by dmit · 2019-06-22 · 66 comments
  30. Implementation on Github: https://github.com/microsoft/mimalloc
    comment by derkha · 2019-06-22 · in Mimalloc: Free List Sharding in Action