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.

Making your ruby fly

41 pointsby alisnicover 12 years ago
Inspired by http://spin.atomicobject.com/2012/11/06/is-your-application-running-with-ruby-slow/

5 comments

donwover 12 years ago
2x improvement in my 'rake spec' runtime... not bad!<p>If you're using rbenv, you can pass CFLAGS to it on the command line, like so: `CFLAGS='-O2' rbenv install ...`
评论 #4819214 未加载
hieronymusNover 12 years ago
For a better understanding of CFLAGs in general: <a href="http://www.gentoo.org/doc/en/gcc-optimization.xml" rel="nofollow">http://www.gentoo.org/doc/en/gcc-optimization.xml</a>
ksecover 12 years ago
That is 6x improvement in speed. Why cant some of these become default?
评论 #4819036 未加载
评论 #4819021 未加载
baseover 12 years ago
Anyone knows the CFlags for EC2 instances?
gazdover 12 years ago
for rvm<p>`rvm install ruby-1.9.3-p286 --patch falcon -n falcon`