From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs3486ebc; Sat, 23 Jan 2010 19:18:37 -0800 (PST) Received: by 10.229.101.165 with SMTP id c37mr2978296qco.5.1264303116734; Sat, 23 Jan 2010 19:18:36 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 6si8555399qwd.46.2010.01.23.19.18.36; Sat, 23 Jan 2010 19:18:36 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-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-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 332F91D788BA; Sat, 23 Jan 2010 22:18:36 -0500 (EST) Received: from magnesium.club.cc.cmu.edu (MAGNESIUM.CLUB.CC.cmu.edu [128.237.157.15]) by rubyforge.org (Postfix) with ESMTP id DF2C518582C9 for ; Sat, 23 Jan 2010 22:18:33 -0500 (EST) Received: (qmail 22411 invoked from network); 24 Jan 2010 03:18:25 -0000 Received: from pion.club.cc.cmu.edu (HELO localhost.localdomain) (128.237.157.88) by magnesium.club.cc.cmu.edu with SMTP; 24 Jan 2010 03:18:25 -0000 From: Rich Lane To: sup-devel@rubyforge.org Date: Sat, 23 Jan 2010 19:17:17 -0800 Message-Id: <1264303037-17440-1-git-send-email-rlane@club.cc.cmu.edu> X-Mailer: git-send-email 1.6.3.3 Subject: [sup-devel] [PATCH] dont check thread-index-mode dirtiness on every keypress X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion 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-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Now that changes are instantly written to the index it's unnecessary to put the "modified" message in the status line. Removing this cuts the time for a simple action like moving the cursor by 75% or more, depending on the number of messages loaded. --- lib/sup/modes/thread-index-mode.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index a6bb2b9..71c8f44 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -651,7 +651,7 @@ EOS if (l = lines) == 0 "line 0 of 0" else - "line #{curpos + 1} of #{l} #{dirty? ? '*modified*' : ''}" + "line #{curpos + 1} of #{l}" end end -- 1.6.3.3 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel