TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Scalable memory allocation using jemalloc

125 pointsby r11tover 14 years ago

5 comments

krakensdenover 14 years ago
I'm impressed that there is still room to eke performance improvements out by fiddling with the base data structure, the original author has been working on refining it for quite a while*<p>* <a href="http://t-t-travails.blogspot.com/2008/07/treaps-versus-red-black-trees.html" rel="nofollow">http://t-t-travails.blogspot.com/2008/07/treaps-versus-red-b...</a>, <a href="http://t-t-travails.blogspot.com/2010/04/red-black-trees-revisited.html" rel="nofollow">http://t-t-travails.blogspot.com/2010/04/red-black-trees-rev...</a>
ericHosickover 14 years ago
40 points and no comments?<p>Just wanted to say it is great submissions like this that make me come to Hacker News...<p>Thank you for taking the time to write this up and post it here...
评论 #2065431 未加载
Erwinover 14 years ago
YMMV but for my Python web app executing mostly OO Python 2.5.x code, I got a 10% performance increase by using jemalloc compared to the malloc in RHEL 5. It's as simply as LD_PRELOAD=/path/to/libjemalloc.so -- memory usage is also better (millions of objects allocated than eventually released in a long running process ended up with smaller amount of memory used when using jemalloc).
评论 #2066861 未加载
amadvanceover 14 years ago
It would be interesting to see a performance comparison with nedmalloc. It uses a trie instead a of redblack-tree for a faster information access.<p><a href="http://www.nedprod.com/programs/portable/nedmalloc/" rel="nofollow">http://www.nedprod.com/programs/portable/nedmalloc/</a><p>Some time ago I evaluated both of them, and they seemed the best available choices. But I never found a comparison study.
评论 #2067735 未加载
评论 #2066371 未加载
dochtmanover 14 years ago
Why is this not the default malloc shipped with libc's around the world yet?
评论 #2066596 未加载