From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Tue, 26 Feb 2013 15:19:59 -0500 Message-ID: References: <87hal05omn.fsf@engster.org> <87wqtv3utc.fsf@engster.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1361910042 24000 80.91.229.3 (26 Feb 2013 20:20:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2013 20:20:42 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: David Engster Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 21:20:58 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 1UAR1C-0005Fz-GN for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 21:20:54 +0100 Original-Received: from localhost ([::1]:45466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAR0r-00030z-Ke for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 15:20:33 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAR0l-00030n-Cy for emacs-devel@gnu.org; Tue, 26 Feb 2013 15:20:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAR0Y-0003fx-0G for emacs-devel@gnu.org; Tue, 26 Feb 2013 15:20:27 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAR0X-0003er-Sl for emacs-devel@gnu.org; Tue, 26 Feb 2013 15:20:13 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UAR0J-00058f-8V; Tue, 26 Feb 2013 15:19:59 -0500 In-reply-to: <87wqtv3utc.fsf@engster.org> (message from David Engster on Tue, 26 Feb 2013 17:26:39 +0100) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:157399 Archived-At: > All we could potentially avoid with the proposal for utf-8 as default > is the step of choosing the coding system heuristically. This would > not make it as fast as find-file-literally. It would make it as fast > as if you had a coding: tag on the first line. How much speedup is > that? I wouldn't know how to test this without implementing it. It is simple to test it. Put `-*-coding: utf-8;-*-' on the first line of the file, then visit it using find-file. How fast is that? How does it compare, in time, with the two cases you tested? All I was saying is that Stefan's proposal looks like micro-optimization to me, since detecting the coding system of the init file is only a very small part of Emacs' startup time. My guess is the same as yours. The method I suggest above will make it possible to answer the matter factually. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call