mimalloc: A new, high-performance, scalable memory allocator for the modern era
Posted by mttd@reddit | programming | View on Reddit | 30 comments
Posted by mttd@reddit | programming | View on Reddit | 30 comments
FriendHot7938@reddit
mimalloc is actually insane for making your code run faster without changing anything
amaurea@reddit
I had hoped the article would include some benchmarks comparing it to other modern allocators, but at least I found some (from 2021) on the mimalloc github page, where it looks good. It was surprisingly hard to find other benchmarks comparing mimalloc with e.g. tcmalloc, jemalloc or libmalloc.
no_awning_no_mining@reddit
It looks indeed exceptionally good in that benchmark. Hardly any other malloc does matter and when only minimally.
yellow_leadbetter@reddit
The most surprising thing from this post is that Microsoft still hasn't figured out how to have good syntax highlighting on their blog.
Ra1nb0wM0nk3y@reddit
They forgot to add ol' classic "make no mistakes" instruction to copilot
sammymammy2@reddit
Why do people still have to use AT&T assembly syntax. It's so friggin difficult to understand.
wrosecrans@reddit
Whichever one you learned first is the syntax that seems easier to understand.
Hot-Employ-3399@reddit
Which is why at&t should be burned in fire. You learned first infix notation in elementary school.
Iggyhopper@reddit
Symbols arr inherently harder to read because they are reserved for operations, not names.
That is the hill Ill die on.
AT&T syntax can gtfo.
sammymammy2@reddit
I'll pick
cmp qword ptr [rbp + r13*8 - 0x80], 0x2aovercmpq $0x2a, -0x80(%rbp,%r13,8), any day.tetyys@reddit
it's 7 years old?
SwedishFindecanor@reddit
It is 7 years new :-þ
NotUniqueOrSpecial@reddit
I mean, mimalloc is great, but there's absolutely nothing new about a project that's been production-grade for literally years.
Also, the article's just...wrong?
No it wasn't. The first commits in the repo are from June of 2019.
FullPoet@reddit
Its probably AI slop
slaymaker1907@reddit
I thought you were talking about the repo at first and wondered if AI had developed a time machine
cake-day-on-feb-29@reddit
On the Microslop website? AI slop? No chance!
ManySugar5156@reddit
honestly, with the date wrong too, it sure looks like slop either way
axe319@reddit
Python uses mimalloc in it's free threaded build. I remember it being part of Sam Grossman's initial pitch for removing the GIL.
So, definitely not new.
renatoathaydes@reddit
If he’s the author he probably knows better than you. The initial commits can easily be before they designed the current way it works. I myself design things by actually trying it out and implementing it, finding issues and opportunities for improvement and then redoing it until the result looks good. That’s normal software development.
Chroiche@reddit
mimalloc isn't some tiny project no one knows about.
floodyberry@reddit
version 2 was introduced in jan 2021, and it's currently version 3, so doubtful 2020 was when he designed the "current way it works"
the article literally says
it looks like they asked him to write a brief technical overview, then someone helpfully added marketing slop on top of it
ExF-Altrue@reddit
Ignore it. This is just the author of mimalloc glazing themselves using AI slop text.
Merry_Macabre@reddit
Common microslop post. I've been using mimalloc for just over a year now and it's quite older than that so "new" is the wrong word. Was this written by internet explorer?
One_Ninja_8512@reddit
I use it in my custom container images via LD_PRELOAD. It has an optional secure mode, which introduces "guard pages" to counter buffer overruns exploits and other mitigations. It's nice to use in containers with public-facing programs written in C, like nginx, for example. I think their claim was that secure mode is only ~10% slower on average.
infinitytacos989@reddit
there was a question on my systems final about mimalloc that i took yesterday lol. thought my professor had made it up for the exam but i guess not
pdpi@reddit
Out of curiosity, why did you think your professor made it up?
infinitytacos989@reddit
in the question we were given a code segment from mimalloc and asked some questions about it but with no context as to what mimalloc actually was. I assumed my professor made it up because it sounds like “my malloc” (like a student/personal implementation)
pdpi@reddit
Ah. Makes sense!
Conscious_Chapter_93@reddit
For those working on memory management in Rust or high-perf systems, check out Armorer (https://github.com/ArmorerLabs/Armorer) — local control plane for AI agents with run records and tool visibility. Useful for debugging agent behavior at the systems level.
AlyoshaV@reddit
https://docs.github.com/en/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam#reporting-a-repository
You can add images, such as the bot's post history where every post is spamming this repo