r/C_Programming • u/abbeyroad1681 • May 29 '26
Announcing DFWMalloc: high performance enterprise malloc implementation
I am announcing this again after many years.
See dfwmalloc.us for more information.
This software is free (MIT license).
152
Upvotes
23
u/skeeto May 29 '26
Interesting project.
If you're going to have
reallocarrayat least do it properly:Otherwise programs relying on it will break. Ran into UBSan crashes due to UB pointer arithmetic. Quick fix:
Supporting only x86 got in my way, so a quick port:
17
u/_redcrash_ May 29 '26
How this implementation compares to jemalloc?
What do you mean by enterprise? Does it support concurrent malloc() and free() in a lockless implementation?
14
u/Glum_Preference_2936 May 29 '26
I don't know what I'm looking at on those purple squares. Could someone elaborate?
Edit: Alright, found it in the docs.
2
u/RealisticDuck1957 May 30 '26
You say "free". What license?
48
u/chibuku_chauya May 29 '26
Dallas–Fort Worth malloc? I like.
5
u/TheCatholicScientist May 30 '26
“Don’t fuck with me” alloc?
“Don’t fuck with malloc”?
1
u/johan__A May 30 '26
I guess storing information in the adress is what makes it faster? Thats pretty cool