From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.96.157.163 with SMTP id wn3csp517135qdb; Sat, 21 Jun 2014 07:14:37 -0700 (PDT) X-Received: by 10.60.155.5 with SMTP id vs5mr10449250oeb.32.1403360076820; Sat, 21 Jun 2014 07:14:36 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id h1si13843006obf.69.2014.06.21.07.14.36 for ; Sat, 21 Jun 2014 07:14:36 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 461554A81A; Sat, 21 Jun 2014 14:14:37 +0000 (UTC) Received: from fe2.pruts.nl (pruts.nl [82.94.235.106]) by rubyforge.org (Postfix) with ESMTP id 6906C2E11F for ; Sat, 21 Jun 2014 14:13:30 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by fe2.pruts.nl (Postfix) with ESMTP id 44500140068 for ; Sat, 21 Jun 2014 11:59:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at pruts.nl Received: from fe2.pruts.nl ([IPv6:::ffff:127.0.0.1]) by localhost (fe2.local [::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sHHOaKs7lbtG for ; Sat, 21 Jun 2014 11:59:08 +0200 (CEST) Received: by fe2.pruts.nl (Postfix, from userid 1000) id 3261014008F; Sat, 21 Jun 2014 11:59:08 +0200 (CEST) From: Ico Doornekamp To: sup-talk In-reply-to: References: X-pgp-key: 4202FA2F X-pgp-keyserver: subkeys.pgp.net X-pgp-fingerprint: F042 F5CD B0A6 EC6A CB80 A829 CACD A4B5 4202 FA2F Date: Sat, 21 Jun 2014 11:59:08 +0200 Message-Id: <1403344734-sup-985@pruts.nl> User-Agent: Sup/0.16.0 Subject: Re: [sup-talk] Tuning Ruby's GC params for faster `sup` X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Hi, * On 2014-06-13 02:04:11 +0200, Aravind Narayanan wrote: > 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. I can confirm this makes a *huge* difference. I'm running sup on a pretty big machine, but at times it's so creeping slow I'm considering moving back to mutt. Using the parameters you suggested speeds up things considerably, loading big threads is now fast enough to be usable without getting annoyed. Thank your *very* much for pointing this out. I hope Sup will pick this up and integrate it in the default application in some way. Ico -- :wq ^X^Cy^K^X^C^C^C^C _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk