Hacker News new | ask | show | jobs
by Iwan-Zotow 371 days ago
+1

windows def allocator is pos. Jemalloc rules

2 comments

>windows def allocator is pos

Wow, still? I remember allocator benchmarks from 10-15 years ago where there were some notable differences between allocators... and then Windows with like 20% the performance of everything else!

It’s improved considerably since.
> windows def allocator

Which one of them? These days it could mean HeapAlloc, or it could mean malloc from uCRT.

malloc in uCRT just calls HeapAlloc, though? You can see the code in ucrt\heap\malloc_base.cpp if you have the Windows SDK installed.

Programs can opt in to the _segment_ heap in their manifest, but it’s not necessarily any faster.