From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Tue, 26 Feb 2013 23:12:29 +0200 Message-ID: <831uc2ye2q.fsf@gnu.org> References: <87hal05omn.fsf@engster.org> <87wqtv3utc.fsf@engster.org> <87liaa4wp9.fsf@engster.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1361913187 21997 80.91.229.3 (26 Feb 2013 21:13:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2013 21:13:07 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: David Engster Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 22:13:27 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 1UARq1-0004Lk-Bk for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 22:13:25 +0100 Original-Received: from localhost ([::1]:41218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARpg-0005wG-EE for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 16:13:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARpd-0005vg-Gm for emacs-devel@gnu.org; Tue, 26 Feb 2013 16:13:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UARpc-00008p-BX for emacs-devel@gnu.org; Tue, 26 Feb 2013 16:13:01 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARpc-00007z-2d; Tue, 26 Feb 2013 16:13:00 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MIU00800IIJ1K00@a-mtaout20.012.net.il>; Tue, 26 Feb 2013 23:12:33 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MIU007YCIWWSFB0@a-mtaout20.012.net.il>; Tue, 26 Feb 2013 23:12:33 +0200 (IST) In-reply-to: <87liaa4wp9.fsf@engster.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:157404 Archived-At: > From: David Engster > Date: Tue, 26 Feb 2013 22:00:34 +0100 > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > > I actually tried that, but it took *longer* with the "coding: utf-8;" > comment, which is why I thought that this is apparently not working and > some additional changes are needed first. > > Here's what I tried: I took files.el from emacs/lisp and copied it to > files_utf8.el and added the "coding" comment there. Then I used this: > > (setq filename "~/files_utf8.el") > (setq final 0) > (dotimes (i 1000) > (let ((res > (benchmark-run (find-file filename)))) > (setq final (+ final (car res))) > (kill-buffer (find-buffer-visiting filename)))) > (message "Result: %f" final) > > Without the coding-comment, this takes ~7.5s, but *with* the > coding-comment it takes ~9.5s. Try "coding: utf-8-unix;" instead.