From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Tue, 26 Feb 2013 08:59:13 +0100 Message-ID: <512C6B51.2050806@online.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361865532 25330 80.91.229.3 (26 Feb 2013 07:58:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2013 07:58:52 +0000 (UTC) Cc: Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 08:59:13 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 1UAFRR-0007M7-Dq for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 08:59:13 +0100 Original-Received: from localhost ([::1]:56498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAFR6-0005EQ-KA for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 02:58:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAFR3-0005CH-6z for emacs-devel@gnu.org; Tue, 26 Feb 2013 02:58:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAFR1-0006sh-SU for emacs-devel@gnu.org; Tue, 26 Feb 2013 02:58:49 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:52888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAFR1-0006sR-Iv for emacs-devel@gnu.org; Tue, 26 Feb 2013 02:58:47 -0500 Original-Received: from [192.168.178.21] (brln-4d0c2744.pool.mediaWays.net [77.12.39.68]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0Ld1ZU-1UakY12GMS-00iYy7; Tue, 26 Feb 2013 08:58:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 In-Reply-To: X-Provags-ID: V02:K0:GVAFjb4PZkOQ+CCyI1n31k1AYUaa+GXm7Lx1BtQTquX 25Qf+64mccYG9utAGid0YEOhxAVXdOFehCNhkKnTqcPKG1A7jc AoBhipZWUTn39h5bysb2wocA/UBzLRqwGuMJYJLatO0LYZgA9F 8RuGaxH7Jk+ylxFDCuvNE9hYLxtPUwvdas/4MQY3pqmARb9GTJ WnPutrmdmcvWNckUrM7UlUluy/SlToEfGYxiskXcFS7bbRZIRb 7DyW+5wQ+56+mSNQDKf55gaEY3VpzTPb19vcGIkr0fAN0vAemp ijhSsvFPnnEZ61gO7INS89JVfWT+xS5qCpAHqhgGtSlHzfbza3 4hMIOuw6f1uX3liaOKEY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.8 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:157380 Archived-At: Am 25.02.2013 02:40, schrieb Stefan Monnier: > It used to be the case that compiling one's .emacs was silly because it > provided no measurable speed difference. But nowadays this is not true > any more: loading a source Elisp file is significantly slower because it > goes through load-with-code-conversion. > > For source files in utf-8 encoding this does not need to be the case: we > could load them without going through load-with-code-conversion. > And given that utf-8 should be the standard encoding for Elisp files > (if not quite now, surely in some not too distant future), this is an > important case. > > So basically, all we need to do is to be able to easily recognize "Elisp > source in utf-8 encoding". One way to do that would be to use > a BOM-like marker, e.g. start utf-8 Elisp files with "\ufeff" either at > the very beginning of the file or right after a semi-colon (for better > backward compatibility). > > > Stefan > > Just out of curiosity, might file magic number system be suitable? Somewhere pointed at EF BB BF Andreas