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 22:18:27 +0100 Message-ID: <87haky4vvg.fsf@engster.org> References: <87hal05omn.fsf@engster.org> <87wqtv3utc.fsf@engster.org> <87liaa4wp9.fsf@engster.org> <831uc2ye2q.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361913523 25494 80.91.229.3 (26 Feb 2013 21:18:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2013 21:18:43 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 22:19:05 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 1UARvP-0006id-Mw for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 22:18:59 +0100 Original-Received: from localhost ([::1]:44840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARv4-0000SM-S1 for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 16:18:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARv1-0000S0-Bu for emacs-devel@gnu.org; Tue, 26 Feb 2013 16:18:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UARuw-00034o-A7 for emacs-devel@gnu.org; Tue, 26 Feb 2013 16:18:35 -0500 Original-Received: from randomsample.de ([83.169.19.17]:45956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARuv-00033u-TC; Tue, 26 Feb 2013 16:18:30 -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=/W/XsA8l8Tks2eacPcFrEAEvKKLbpInQ+/h+r+2w3Vk=; b=r7KBXJdZ3Z2PULmhRqbpcSxQ0PrAjTTG7MkKx+wBYnx5E1wMOk6ky2tl8oPzAGJQ0QPk6JaANlpi5ogJhqlONmiD+rQWqJ/vgCM0U9bxWIT118jg1hOhYd7J4HMiKFGB; 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 1UARut-0007Q8-T8; Tue, 26 Feb 2013 22:18:27 +0100 In-Reply-To: <831uc2ye2q.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 26 Feb 2013 23:12:29 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.93 (gnu/linux) Mail-Followup-To: Eli Zaretskii , rms@gnu.org, 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:157405 Archived-At: Eli Zaretskii writes: >> 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. This only reduces the time a tiny bit (could well be within variance). It's still almost 2s slower. Maybe I'm doing something stupid. I'd feel more comfortable if someone else could confirm this. -David