From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#5749: 24.0.50; Gomoku startup latency Date: Wed, 24 Mar 2010 12:27:03 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <8739zwq62s.fsf@escher.home> <9rmxxy32sj.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1269402929 23991 80.91.229.12 (24 Mar 2010 03:55:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 03:55:29 +0000 (UTC) Cc: Stephen Berman , 5749@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 24 04:55:24 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuHgi-00042P-5k for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Mar 2010 04:55:24 +0100 Original-Received: from localhost ([127.0.0.1]:59604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuHgh-0002hE-IN for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Mar 2010 23:55:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuHgd-0002h3-8V for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 23:55:19 -0400 Original-Received: from [140.186.70.92] (port=41715 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuHgb-0002gt-W3 for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 23:55:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuHgZ-0007UW-R4 for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 23:55:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60927) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuHgZ-0007UQ-PS for bug-gnu-emacs@gnu.org; Tue, 23 Mar 2010 23:55:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NuHGE-0004Br-5X; Tue, 23 Mar 2010 23:28:02 -0400 X-Loop: bug-gnu-emacs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Mar 2010 03:28:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: followup 5749 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5749-submit@debbugs.gnu.org id=B5749.126940123116100 (code B ref 5749); Wed, 24 Mar 2010 03:28:02 +0000 Original-Received: (at 5749) by debbugs.gnu.org; 24 Mar 2010 03:27:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuHFP-0004Bd-H6 for submit@debbugs.gnu.org; Tue, 23 Mar 2010 23:27:11 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuHFM-0004BY-LP for 5749@debbugs.gnu.org; Tue, 23 Mar 2010 23:27:10 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 01D15C0557; Wed, 24 Mar 2010 12:27:03 +0900 (JST) In-Reply-To: <9rmxxy32sj.fsf@fencepost.gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 23 Mar 2010 23:28:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35715 Archived-At: >>>>> On Tue, 23 Mar 2010 21:51:24 -0400, Glenn Morris said: > Stephen Berman wrote: >> 1. Let ~/.emacs consist of this sexp: >> (setq initial-frame-alist '((fullscreen . fullheight))) >> 2. Start Emacs with the above init file. >> 3. M-x gomoku >> => There is a noticeable delay loading the game -- on my system 3-4 >> seconds. > This is interesting. Emacs 23.1 is almost instantaneous, but 23.1.94 > is very slow, and also starts using a huge amount of memory (1GB+ for me). > Loading gomoku.el from 23.1 in 23.1.94 makes no difference. This is due to a behavioral change of `append-to-buffer', which used to preserve the point when the first argument coincides with the current buffer. The following patch would work for this case. Maybe other occurrences of `(append-to-buffer (current-buffer) ...)' should also be checked if they work as intended. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp === modified file 'lisp/play/gomoku.el' *** lisp/play/gomoku.el 2010-01-13 08:35:10 +0000 --- lisp/play/gomoku.el 2010-03-24 03:04:35 +0000 *************** *** 1040,1046 **** (= i (- m 2)) (progn (while (>= i 3) ! (append-to-buffer (current-buffer) opoint (point)) (setq i (- i 2))) (goto-char (point-max)))) (setq point (point)) --- 1040,1046 ---- (= i (- m 2)) (progn (while (>= i 3) ! (prepend-to-buffer (current-buffer) opoint (point)) (setq i (- i 2))) (goto-char (point-max)))) (setq point (point))