From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.79.9 with SMTP id c9cs150711agb; Wed, 4 Nov 2009 21:52:08 -0800 (PST) Received: by 10.224.5.135 with SMTP id 7mr1270320qav.148.1257400328144; Wed, 04 Nov 2009 21:52:08 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 32si2206518qyk.120.2009.11.04.21.52.08; Wed, 04 Nov 2009 21:52:08 -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 D905C1588067; Thu, 5 Nov 2009 00:52:07 -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 0D2581858292 for ; Thu, 5 Nov 2009 00:52:04 -0500 (EST) Received: (qmail 9552 invoked from network); 5 Nov 2009 05:45:23 -0000 Received: from pion.club.cc.cmu.edu (HELO localhost.localdomain) (128.237.157.88) by magnesium.club.cc.cmu.edu with SMTP; 5 Nov 2009 05:45:23 -0000 From: Rich Lane To: sup-talk@rubyforge.org Date: Wed, 4 Nov 2009 21:45:21 -0800 Message-Id: <1257399921-26813-4-git-send-email-rlane@club.cc.cmu.edu> X-Mailer: git-send-email 1.6.4.2 In-Reply-To: <1257399921-26813-3-git-send-email-rlane@club.cc.cmu.edu> References: <1257399921-26813-1-git-send-email-rlane@club.cc.cmu.edu> <1257399921-26813-2-git-send-email-rlane@club.cc.cmu.edu> <1257399921-26813-3-git-send-email-rlane@club.cc.cmu.edu> Subject: [sup-talk] [PATCH 4/4] force the index sync thread to give up the cpu 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 --- lib/sup/index.rb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/sup/index.rb b/lib/sup/index.rb index 1131ec7..4f491d6 100644 --- a/lib/sup/index.rb +++ b/lib/sup/index.rb @@ -201,6 +201,8 @@ class BaseIndex while m = @sync_queue.deq return if m == :die update_message_state m + # Necessary to keep Xapian calls from lagging the UI too much. + sleep 0.03 end end end -- 1.6.4.2 _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk