From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#16594: 24.3.50; very slow redraw when resizing windows horizontally Date: Mon, 03 Feb 2014 11:27:36 -0800 Organization: UCLA Computer Science Department Message-ID: <52EFEDA8.3010506@cs.ucla.edu> References: <52EC8F46.2050603@cs.ucla.edu> <83sis24tfv.fsf@gnu.org> <52ED96C8.90506@cs.ucla.edu> <52EEAF0F.9060701@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080704060609000009080209" X-Trace: ger.gmane.org 1391455694 15458 80.91.229.3 (3 Feb 2014 19:28:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Feb 2014 19:28:14 +0000 (UTC) Cc: 16594@debbugs.gnu.org To: Darren Hoo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 03 20:28:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WAPBs-0006jU-3U for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Feb 2014 20:28:20 +0100 Original-Received: from localhost ([::1]:49297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAPBr-0001Zb-Ni for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Feb 2014 14:28:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAPBh-0001YD-Qo for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2014 14:28:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAPBa-0006sE-Hh for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2014 14:28:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAPBa-0006s7-Es for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2014 14:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WAPBZ-0002f9-R8 for bug-gnu-emacs@gnu.org; Mon, 03 Feb 2014 14:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Feb 2014 19:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16594 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16594-submit@debbugs.gnu.org id=B16594.139145566110206 (code B ref 16594); Mon, 03 Feb 2014 19:28:01 +0000 Original-Received: (at 16594) by debbugs.gnu.org; 3 Feb 2014 19:27:41 +0000 Original-Received: from localhost ([127.0.0.1]:48321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WAPBE-0002eX-Lh for submit@debbugs.gnu.org; Mon, 03 Feb 2014 14:27:40 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:51654) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WAPBD-0002eO-98 for 16594@debbugs.gnu.org; Mon, 03 Feb 2014 14:27:39 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id DDC22A60003; Mon, 3 Feb 2014 11:27:36 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BiORsEsEMTxw; Mon, 3 Feb 2014 11:27:36 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 7AC8139E8018; Mon, 3 Feb 2014 11:27:36 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52EEAF0F.9060701@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84515 Archived-At: This is a multi-part message in MIME format. --------------080704060609000009080209 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit While we're waiting for more info, attached is another shot in the dark; does this work around the problem? --------------080704060609000009080209 Content-Type: text/x-patch; name="atimer.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="atimer.diff" === modified file 'src/atimer.c' --- src/atimer.c 2014-01-01 07:43:34 +0000 +++ src/atimer.c 2014-02-03 19:16:53 +0000 @@ -340,9 +340,12 @@ static void run_timers (void) { - struct timespec now = current_timespec (); + struct timespec now = make_timespec (TYPE_MINIMUM (time_t), -1); - while (atimers && timespec_cmp (atimers->expiration, now) <= 0) + while (atimers + && (timespec_cmp (atimers->expiration, now) <= 0 + || (now = current_timespec (), + timespec_cmp (atimers->expiration, now) <= 0))) { struct atimer *t = atimers; atimers = atimers->next; --------------080704060609000009080209--