From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.217.136 with SMTP id hm8cs260420icb; Thu, 30 Dec 2010 07:32:05 -0800 (PST) Received: by 10.42.173.69 with SMTP id q5mr16843910icz.86.1293723125320; Thu, 30 Dec 2010 07:32:05 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id g36si29361879qcq.19.2010.12.30.07.32.05; Thu, 30 Dec 2010 07:32:05 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C2A84185838E; Thu, 30 Dec 2010 10:32:04 -0500 (EST) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id 8EEFC1858361 for ; Thu, 30 Dec 2010 10:31:44 -0500 (EST) Received: by kuovi.tilus.net (Postfix, from userid 1000) id 5ABFF10C765; Thu, 30 Dec 2010 17:31:43 +0200 (EET) From: Tero Tilus To: sup-talk In-reply-to: <4D1321A2.9070206@lophus.org> References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net> <4D0F5C5E.7030809@lophus.org> <1292853433-sup-364@tilus.net> <4D1321A2.9070206@lophus.org> Date: Thu, 30 Dec 2010 17:31:43 +0200 Message-Id: <1293722265-sup-2399@tilus.net> User-Agent: Sup/git Subject: Re: [sup-talk] Help me getting started. 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 Jonas H., 2010-12-23 12:17: > On 12/20/2010 02:57 PM, Tero Tilus wrote: > > I've never had any problems with that. Not even with really lo-fi hw. > > Could you try profiling if? (gem install ruby-prof, launch sup using > > ruby-prof and do scrolling, preferably a lot of it and then exit) > > Results attached; the 'short' log is without lines that only consist of > 0.0[012] 0.0[012] ... 0.0[012]. The biggest problem seems to be String#display_length with ruby versions < 1.9.1. Manually calculating display lenght using scan(/./u) is definitely not nice, but I don't know how could you make it faster. Maybe caching calculated display_lengths? Looks like I just haven't done enough scrolling to find that out. :-O -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk