all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Fabrice Popineau <fabrice.popineau@gmail.com>,
	tumashu  <tumashu@163.com>
Cc: emacs-devel@gnu.org
Subject: Re: How to make 'load' fast in window?
Date: Tue, 14 Jun 2016 17:46:57 +0300	[thread overview]
Message-ID: <83wplreske.fsf@gnu.org> (raw)
In-Reply-To: <loom.20160614T092657-361@post.gmane.org> (message from Fabrice Popineau on Tue, 14 Jun 2016 07:36:19 +0000 (UTC))

> From: Fabrice Popineau <fabrice.popineau@gmail.com>
> 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	other threads:[~2016-06-14 14:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13  2:29 How to make 'load' fast in window? tumashu
2016-06-13  5:44 ` Jiege Chen
2016-06-13 13:44   ` Eli Zaretskii
2016-06-13 14:09   ` Fabrice Popineau
2016-06-14  3:25     ` tumashu
2016-06-14  7:36       ` Fabrice Popineau
2016-06-14 14:46         ` Eli Zaretskii [this message]
2016-06-14 20:39           ` Fabrice Popineau
2016-06-15  2:47             ` tumashu
2016-06-15  6:51               ` Fabrice Popineau
2016-06-17  8:48                 ` Fabrice Popineau
2016-06-15 14:46               ` Eli Zaretskii
2016-06-15 15:15                 ` Fabrice Popineau
2016-06-15 15:40                   ` Eli Zaretskii
2016-06-15 15:49                     ` Fabrice Popineau
2016-06-15 17:23                       ` Eli Zaretskii
2016-06-15 15:30                 ` Fabrice Popineau
2016-06-15 22:41                   ` Feng Shu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83wplreske.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=fabrice.popineau@gmail.com \
    --cc=tumashu@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.