From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.217.136 with SMTP id hm8cs270919icb; Thu, 30 Dec 2010 13:38:22 -0800 (PST) Received: by 10.229.246.82 with SMTP id lx18mr14307241qcb.248.1293745101951; Thu, 30 Dec 2010 13:38:21 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id x6si30027706qcq.49.2010.12.30.13.38.21; Thu, 30 Dec 2010 13:38:21 -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 532B7185836B; Thu, 30 Dec 2010 16:38:21 -0500 (EST) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id 470121858361 for ; Thu, 30 Dec 2010 16:33:20 -0500 (EST) Received: by kuovi.tilus.net (Postfix, from userid 1000) id 9396110C7BA; Thu, 30 Dec 2010 23:33:05 +0200 (EET) From: Tero Tilus To: sup-talk In-reply-to: <1293722265-sup-2399@tilus.net> References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net> <4D0F5C5E.7030809@lophus.org> <1292853433-sup-364@tilus.net> <4D1321A2.9070206@lophus.org> <1293722265-sup-2399@tilus.net> Date: Thu, 30 Dec 2010 23:33:05 +0200 Message-Id: <1293740777-sup-5080@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 Tero Tilus, 2010-12-30 17:31: > Maybe caching calculated display_lengths? Caching cuts down String#scan calls by ~30% and produces no perceivable difference in scrolling responsivenes. After String#display_length caching the main cpu hog is Ncurses::WINDOW#method_missing, which dispatches calls to wide char or ordinary Ncurses methods depending what's available. Gonna try to hardwire Ncurses::WINDOW#mvaddstr next. > Looks like I just haven't done enough scrolling to find that out. :-O Now that I really look into this. The performance I see (sup runnin screened on Bytemark VPS) is considerably better that what is seen on the video. It is definitely not fast, but otoh I can't make it lag behind like it does on the video. -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk