From: Aravind Narayanan <a.cyberian@gmail.com>
To: sup-talk@rubyforge.org
Subject: [sup-talk] Tuning Ruby's GC params for faster `sup`
Date: Thu, 12 Jun 2014 17:04:11 -0700 [thread overview]
Message-ID: <CANsdhjcovLg-C7aM7ZMYh83h5pXVmXMGNRZBJkb5OboWz8Po4g@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 711 bytes --]
Hey everyone,
I'm sharing this to see if any else does this, and whether or not it makes
sense to include in the defaults.
`sup` was kind of slow for me, and sometimes took a few seconds to open up
an (albeit large) email thread. I ran `perftools.rb` on it to see what was
taking up so much time, and was surprised to find that ~ 60% of wallclock
time was spent in GC.
So, I tuned Ruby's GC to not run so often, resulting in GC now taking only
13% of wall clock time. Anecdotally, I also noticed that threads loaded
much much faster. The params I set were
https://gist.github.com/rvnd/756d6a5e82d1bba9fbb9.
Anyone else notice this? Are there any other tricks people use to speed up
`sup`?
Regards,
Aravind
[-- Attachment #1.2: Type: text/html, Size: 973 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next reply other threads:[~2014-06-13 0:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 0:04 Aravind Narayanan [this message]
2014-06-21 9:59 ` Ico Doornekamp
2014-06-21 17:55 ` Gaute Hope
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANsdhjcovLg-C7aM7ZMYh83h5pXVmXMGNRZBJkb5OboWz8Po4g@mail.gmail.com \
--to=a.cyberian@gmail.com \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox