TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Garbage Collection and the Ruby Heap

99 点作者 tmm1超过 15 年前

11 条评论

leftnode超过 15 年前
I'm not fluent in Ruby whatsoever, but I think we need more content like this on HN. Incredibly informative and in depth. I probably won't ever learn Ruby in depth, but I love reading about this type of stuff, learned a lot.<p>Thanks for the link.
评论 #1144870 未加载
cullenking超过 15 年前
Was this a slidestack from a bit ago? I remember reading a slidestack of yours a couple months back on the same topic, and found it VERY informative.<p>In any event, keep up the free education! I've learned alot going through your site. Oh, and thanks for some great ruby libraries!
评论 #1143647 未加载
mrduncan超过 15 年前
Seriously excellent slides.<p>Any chance of a video of this talk being released? I'd love some commentary from you guys.
评论 #1143586 未加载
kevingadd超过 15 年前
Very cool, detailed slides.<p>I think his notes demonstrate how wildly the 'optimal' settings for a scripting runtime can vary based on use case - 500K slots in a slab makes perfect sense for rails, but 10K also makes pretty good sense for running ruby from the command line to execute a tiny script.<p>One thing that caught my eye - I think according to slide 52, at startup a rails app is using over 3625840 bytes of heap just to represent newline nodes generated from source code? Am I interpreting the data right, or is he just counting the actual nodes and not the RVALUEs attached to them? Kind of funny to think about optimizing memory usage in a rails app by stripping out superfluous newlines.
评论 #1143806 未加载
darkhelmetlive超过 15 年前
I always learn so much from you and Damato.
评论 #1143584 未加载
chuhnk超过 15 年前
Whoa extremely informative slides, thanks for those. Alot of stuff in there I had no idea about. I love learning.
wingo超过 15 年前
Sigh. Does anyone have a PDF link?
评论 #1147287 未加载
kristianp超过 15 年前
It's a pity memprof doesn't support 32-bit linux yet. I would like to try out the method in the slides on my 32 bit machine.
评论 #1144286 未加载
jcnnghm超过 15 年前
If you haven't, tune the garbage collector for rails. By tuning, I was able to improve the performance of my production application by about 60%.
评论 #1144638 未加载
jpr超过 15 年前
Ruby is known as the slowest and memoryhungriest language in common use today, is there any reason why people should know how it achieves that? How does this advance the state of the art?
评论 #1143927 未加载
评论 #1143997 未加载
jakedouglas超过 15 年前
These slides are _ILL_ bro.
评论 #1144630 未加载