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" wrote: >Jiege Chen qq.com> writes: > >> >> tumashu 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 > >