From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Tue, 26 Feb 2013 17:26:39 +0100 Message-ID: <87wqtv3utc.fsf@engster.org> References: <87hal05omn.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361896013 5504 80.91.229.3 (26 Feb 2013 16:26:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2013 16:26:53 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 17:27:10 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 1UANMx-0002MW-W2 for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 17:27:08 +0100 Original-Received: from localhost ([::1]:39757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UANMd-00017O-2O for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 11:26:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UANMa-00017J-Ow for emacs-devel@gnu.org; Tue, 26 Feb 2013 11:26:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UANMZ-0007wA-I3 for emacs-devel@gnu.org; Tue, 26 Feb 2013 11:26:44 -0500 Original-Received: from randomsample.de ([83.169.19.17]:51758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UANMZ-0007vv-5A; Tue, 26 Feb 2013 11:26:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=jNPrXOgtbRW0Epa4KgAbWQNBVJgn4filkXqfWIk/d5I=; b=mpAKW/2BK/cuTETCY+Vmk7ZwuUXxPC90mvew7rUguU0pe6ngv5SfzRt4NuWiRFgNHAKYHJ3MxrS0yyI3ABeqZEkDBpW8ebBTsseUtgdRmvWa14Zw3j0qJMawbwE3w6P6; Original-Received: from dslc-082-083-063-126.pools.arcor-ip.net ([82.83.63.126] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UANMX-0007s0-EP; Tue, 26 Feb 2013 17:26:41 +0100 In-Reply-To: (Richard Stallman's message of "Tue, 26 Feb 2013 07:56:22 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.93 (gnu/linux) Mail-Followup-To: Richard Stallman , monnier@iro.umontreal.ca, emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 83.169.19.17 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:157390 Archived-At: Richard Stallman writes: > A very rough estimate through 'benchmark-run' indicates that > `find-file-literally' is indeed about 10x faster than > `find-file'. > > find-file-literally avoids DOING the code conversion. However, even > if we use utf-8 as the default, or unconditionally, conversion would > still need to be done. > > 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. Using `find-file-literally' at least provides a number for the ideal case with no decoding at all. 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. -David