emacs-devel
[Top][All Lists]
Advanced

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

Re: How to make 'load' fast in window?


From: Eli Zaretskii
Subject: Re: How to make 'load' fast in window?
Date: Tue, 14 Jun 2016 17:46:57 +0300

> From: Fabrice Popineau <address@hidden>
> Date: Tue, 14 Jun 2016 07:36:19 +0000 (UTC)
> 
> > download pyim-bigdict-cf210fa066f2fa18c1606eeddfffcf84.el from  
> https://github.com/tumashu/tumashu-temp-filesand eval: 
> > 
> > #+BEGIN_EXAMPLE        (setq pyim-dict-cache              (with-temp-
> buffer                (insert-file-contents "/path/to/pyim-bigdict-
> cf210fa066f2fa18c1606eeddfffcf84.el")                (eval (read (current-
> buffer)))))#+END_EXAMPLE
> > 
> 
> So, starting from `emacs -Q' on an i7-4702HQ with emacs-25.0.94, windows 10, 
> I 
> get a user time of about 4s and the following profiler report:

On an i7 system I get 0.6s with Emacs 25.0.95 and 2s with 24.5.  Both
are optimized (-O2) builds.  This is comparable with the GNU/Linux
results, and is what I'd expect.  Unless yours are not -O2, I don't
understand how you get so much slower times.

My guess is that the OP uses an unoptimized build of Emacs on Windows,
or the Windows machine is much slower than the GNU/Linux one (or
both).  There's nothing in this code or the profile you present that
could be significantly slower on Windows; the only potential suspect,
file I/O, takes a negligible fraction of time.



reply via email to

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