From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#122: 23.0.60; Slowdown in directory scanning over time. Date: Tue, 16 Sep 2008 10:09:39 +0900 Message-ID: References: <87r68bwgu9.fsf@cyd.mit.edu> Reply-To: Kenichi Handa , 122@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1221528474 22124 80.91.229.12 (16 Sep 2008 01:27:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 01:27:54 +0000 (UTC) Cc: 122@emacsbugs.donarmstrong.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 03:28:50 2008 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.50) id 1KfPN2-0004pY-Je for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 03:28:48 +0200 Original-Received: from localhost ([127.0.0.1]:33111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfPM1-0005j8-RW for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 21:27:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfPLv-0005gd-KD for bug-gnu-emacs@gnu.org; Mon, 15 Sep 2008 21:27:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfPLt-0005gQ-Mn for bug-gnu-emacs@gnu.org; Mon, 15 Sep 2008 21:27:38 -0400 Original-Received: from [199.232.76.173] (port=43926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfPLt-0005gM-GH for bug-gnu-emacs@gnu.org; Mon, 15 Sep 2008 21:27:37 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43086) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfPLs-0004pr-UQ for bug-gnu-emacs@gnu.org; Mon, 15 Sep 2008 21:27:37 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8G1RYXG000548; Mon, 15 Sep 2008 18:27:34 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8G1F3El028161; Mon, 15 Sep 2008 18:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 16 Sep 2008 01:15:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 122 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 122-submit@emacsbugs.donarmstrong.com id=B122.122152738626359 (code B ref 122); Tue, 16 Sep 2008 01:15:02 +0000 Original-Received: (at 122) by emacsbugs.donarmstrong.com; 16 Sep 2008 01:09:46 +0000 Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8G19gqG026291 for <122@emacsbugs.donarmstrong.com>; Mon, 15 Sep 2008 18:09:44 -0700 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m8G19f5t019526; Tue, 16 Sep 2008 10:09:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m8G19fMI024139; Tue, 16 Sep 2008 10:09:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id m8G19deT022158; Tue, 16 Sep 2008 10:09:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KfP4V-00031U-Nq; Tue, 16 Sep 2008 10:09:39 +0900 In-reply-to: (rms@gnu.org) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 15 Sep 2008 21:27:38 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:20556 Archived-At: In article , "Richard M. Stallman" writes: > (1) A coding system can have pre-write-conversion function, > and that function can call code-conversion function > recursively. > I read in the doc string of define-coding-system > that the pre-write-conversion function is called > before doing the ordinary work of encoding. > Is it possible to call the pre-write-conversion function > before obtaining the work buffer? No. If the source of encoding is a string, it is inserted in a working buffer to allow pre-write-conversion function to modify it. > (2) If REPLACE arg is non-nil in insert-file-contents and a > file need a decoding, we call decode_coding_c_string while a > work buffer is in use. > I see why decoding is needed in this case, but why is a work > buffer already in use? It seems to me that there is only one > act of decoding to be done in that call to insert-file-contents. insert-file-contents uses the working buffer to hold the output of decoding. So, when decode_coding_c_string is called, we have already called code_conversion_save to make the working buffer. --- Kenichi Handa handa@ni.aist.go.jp