From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sand@blarg.net Newsgroups: gmane.emacs.devel Subject: Re: Emacs HEAD regressions (another test case) Date: Thu, 5 Feb 2009 18:42:06 -0800 Message-ID: <18827.41854.434092.39788@priss.frightenedpiglet.com> References: <498964C5.5020906@alice.it> <18826.28789.943303.596345@priss.frightenedpiglet.com> <498ABAAC.3040308@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233930787 31017 80.91.229.12 (6 Feb 2009 14:33:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2009 14:33:07 +0000 (UTC) To: Angelo Graziosi , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 06 15:34:21 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LVRmf-00077h-1J for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2009 15:34:21 +0100 Original-Received: from localhost ([127.0.0.1]:51407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVRlL-00022e-UK for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2009 09:32:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVGfV-0005Bp-BL for emacs-devel@gnu.org; Thu, 05 Feb 2009 21:42:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVGfR-0005Bd-Q8 for emacs-devel@gnu.org; Thu, 05 Feb 2009 21:42:12 -0500 Original-Received: from [199.232.76.173] (port=58320 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVGfR-0005Ba-Nq for emacs-devel@gnu.org; Thu, 05 Feb 2009 21:42:09 -0500 Original-Received: from v-static-143-234.avvanta.com ([206.124.143.234]:60249 helo=priss.frightenedpiglet.com) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LVGfR-0000OE-0u for emacs-devel@gnu.org; Thu, 05 Feb 2009 21:42:09 -0500 Original-Received: (qmail 29600 invoked by uid 1000); 6 Feb 2009 02:42:06 -0000 In-Reply-To: <498ABAAC.3040308@alice.it> X-Mailer: VM 8.0.11 under Emacs 23.0.60.1 (i486-pc-linux-gnu) X-URL: http://home.blarg.net/~sand X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108813 Archived-At: Angelo Graziosi writes: > sand@blarg.net ha scritto: > > > > Anything that can generate 6kB lines in your complation buffer should > > do. Try calling a shell script that writes the long line. For me, it > > was a long compilation line from "make". > > Indeed! The attached script 'prints' 6x1024 'x' characters, and on > GNU/LINUX KUBUNTU 8.04.02 it takes: > > 4 seconds with Emacs CVS LESS THAN OR EQUAL TO (<=) 20090129 15:30 > > 2:15 minutes, i.e. 60x2+15=135 seconds with Emacs GREATER THAN OR EQUAL > TO (>=) 20090129 15:40! > > To reproduce: > > $ emacs -Q & > > M-x compile > C-a C-k > ./test_script-6KB.sh > I can repro the success and failure cases on those two times. Note that people need to set their timezone to CET for those timestamps to be accurate: env TZ=CET cvs diff -D '2009-01-29 15:30' -D '2009-01-29 15:40' That diff contains changes for pending signals. +2009-01-29 Chong Yidong + + * keyboard.c (pending_signals): New var. + (poll_for_input, input_available_signal, init_keyboard): Set it. + (process_pending_signals): New function. + + * lisp.h (QUIT): Check pending_signals instead of + interrupt_input_pending. Use process_pending_signals. + + * atimer.c (run_timers, alarm_signal_handler): Update + pending_signals. + + * process.c (wait_reading_process_output): Use + process_pending_signals. + + * sysdep.c (emacs_write): Use process_pending_signals. + + * xterm.c (XTread_socket): Update pending_signals. + + * w32term.c (w32_read_socket): Update pending_signals. + + * w32inevt.c (w32_console_read_socket): Update pending_signals. + Derek