emacs-devel
[Top][All Lists]
Advanced

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

Re: Loading souce Elisp faster


From: Eli Zaretskii
Subject: Re: Loading souce Elisp faster
Date: Tue, 26 Feb 2013 23:12:29 +0200

> From: David Engster <address@hidden>
> Date: Tue, 26 Feb 2013 22:00:34 +0100
> Cc: address@hidden, address@hidden
> 
> 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.



reply via email to

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