emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading souce Elisp faster


From: Xue Fuqiao
Subject: Re: Loading souce Elisp faster
Date: Wed, 27 Feb 2013 06:40:04 +0800

On Tue, 26 Feb 2013 22:18:27 +0100
David Engster <address@hidden> wrote:

> Eli Zaretskii writes:
> >> 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.

On my machine:

without coding-comment: 8.345521

with `utf-8': 11.226320

with `utf-8-unix': 10.710828

with `utf-8-emacs': 12.518312

with `utf-8-auto': 12.239123

> -David

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]