Skip to content

Comment on Experimental C++11 multi-platform 3D engineparent

Comments

Is jemalloc's footprint really in the hundreds of kilobytes?

As source I cite this PR that just landed today:

https://github.com/rust-lang/rust/pull/20218

"It's quite possible that small programs don't use all of jemalloc, and building with -ffunction-sections and -fdata-sections allows the linker (via --gc-sections) to strip out all unused code at link time. This decreases the size of a "hello world" executable for me from 716K to 482K with no measurable impact on link time. After this patch jemalloc is still the largest portion of our hello world executables, but this helps cut down on the size at least somewhat!"

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.