From: tumashu <tumashu@163.com>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re:Re: How to make 'load' fast in window?
Date: Tue, 14 Jun 2016 11:25:07 +0800 (CST) [thread overview]
Message-ID: <65b7225c.5e6c.1554cf0f4a4.Coremail.tumashu@163.com> (raw)
In-Reply-To: <loom.20160613T160735-386@post.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1503 bytes --]
My emacs is GNU Emacs 24.5.1 (i686-pc-mingw32)
I want to convert the content of pyim-bigdict.pyim (A 40M text file) (https://github.com/tumashu/chinese-pyim-bigdict) to a hashtable,
so I use chinese-async to prin1 the hashtable to a el file, which is like:
#+BEGIN_EXAMPLE
(setq pyim-dict-cache #s(hash-table size 1000000 test equal rehash-size 1.5 rehash-threshold 0.8 data ("a" ("哎") "a-a" ("呵呵") "a-h" ("呵呵") ...)))
#+END_EXAMPLE
Then I use load function to load this file, pyim-dict-cache hashtable can be generated too, In my linux machine, load this file only need 1s,
but in windows machine, this need 15-20s, very slow.
By the way, now I use eval + read instead, but seem to slow too.....
download pyim-bigdict-cf210fa066f2fa18c1606eeddfffcf84.el from https://github.com/tumashu/tumashu-temp-files
and 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
At 2016-06-13 22:09:20, "Fabrice Popineau" <fabrice.popineau@gmail.com> wrote:
>Jiege Chen <jiegec <at> qq.com> writes:
>
>>
>> tumashu <tumashu <at> 163.com> wrote:
>> > I use "load" function to load a elisp file which include a 40M hashtable,
>> > In linux, it only need 1s, while in window, it need 15s, which is too slowly,
>> How to speed it up?
>
>On what machine?
>Can you share your file?
>
>Regards,
>
>Fabrice
>
>
[-- Attachment #2: Type: text/html, Size: 3069 bytes --]
next prev parent reply other threads:[~2016-06-14 3:25 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 [this message]
2016-06-14 7:36 ` Fabrice Popineau
2016-06-14 14:46 ` Eli Zaretskii
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=65b7225c.5e6c.1554cf0f4a4.Coremail.tumashu@163.com \
--to=tumashu@163.com \
--cc=emacs-devel@gnu.org \
/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.