From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Wed, 27 Feb 2013 11:22:10 +0900 Message-ID: <87liaa338t.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87hal05omn.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1361931738 23582 80.91.229.3 (27 Feb 2013 02:22:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2013 02:22:18 +0000 (UTC) Cc: monnier@iro.umontreal.ca, David Engster , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 03:22:41 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UAWfJ-0008SW-HH for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2013 03:22:41 +0100 Original-Received: from localhost ([::1]:48818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAWey-0004vy-9k for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 21:22:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAWeu-0004vj-PI for emacs-devel@gnu.org; Tue, 26 Feb 2013 21:22:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAWet-0006ra-Li for emacs-devel@gnu.org; Tue, 26 Feb 2013 21:22:16 -0500 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:34808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAWet-0006qv-CQ; Tue, 26 Feb 2013 21:22:15 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 462553FA08C1; Wed, 27 Feb 2013 11:22:12 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 018DB1A27AE; Wed, 27 Feb 2013 11:22:10 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta32) "habanero" b0d40183ac79 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.158.97.223 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157415 Archived-At: Richard Stallman writes: > If we could manage to speed up the entire code conversion stage, > that would be a much bigger improvement, helping every user. I suppose anything's possible, but when this issue came up for us careful measurements showed that code conversion itself causes delays only if the whole file is already in memory -- otherwise code conversion throughput is at least as high as disk I/O throughput. I don't recall the details, that was done in the last millennium. Again, for XEmacs comparisons of find-file-literally to anything else (in particular, file-file) tell you very little about coding conversion speed because find-file does a lot of processing in Lisp that find-file-literally does not. (files.el is nowhere near big enough to amortize that cost; I would go for a file in the 10MB range or bigger.) I believe that Emacs is the same. While presumably hooks and file handlers aren't actually called in the tests reported in this thread, coding *detection* is costly, as it involves a couple of extra seeks and reads on disk. This is exactly what the proposal to default Lisp files to UTF-8 addresses.