Hacker News new | ask | show | jobs
by umanwizard 2389 days ago
Malloc is not a syscall, you're right. But it's a quite complicated funtion, so it wouldn't make sense for the compiler (or linker) to inline it wherever it's called.
1 comments

jemalloc is deliberately structured so that the fast path is all inlined and all unlikely paths which would cause it to blow the inlining complexity budget get pushed out.
Interesting. I didn't know that, but it sounds plausible.