redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.39k stars 619 forks source link

启动时长时间等待网络 #989

Closed atomsi closed 2 years ago

atomsi commented 2 years ago

version:

  1. 0614 下载的master version zip package
  2. GNU Emacs 28.1 step:
  3. remove .emacs.d & .customer.el
  4. cp master version as .emacs.d
  5. boot emacs => package 安装没有报错
  6. 正常启动emacs 和 emacs --debug-init, 均没有报错,但需要大约2m才能正常工作
  7. 修改package source 为163, 没有什么变化 message: 1 Importing package-keyring.gpg...done 2 Contacting host: mirrors.163.com:443 3 Opening TLS connection to ‘mirrors.163.com’... 4 Opening TLS connection with ‘gnutls-cli --x509cafile /etc/pki/tls/certs/ca-bundle.crt -p 443 mirrors.163.com’...done 5 Opening TLS connection to ‘mirrors.163.com’...done 6 Contacting host: mirrors.163.com:443 [4 times] 7 Package refresh done 8 ‘dictionary’ is already installed 9 Loading /home/tom/.emacs.d/.session...done 10 Loading /home/tom/.emacs.d/company-statistics-cache.el (source)...done 11 Saving file /home/tom/.emacs.d/custom-set-variables.el... 12 Wrote /home/tom/.emacs.d/custom-set-variables.el 13 For information about GNU Emacs and the GNU system, type C-h C-a. 14 Package tls is deprecated
atomsi commented 2 years ago

使用163源: emacs-init-time: 78s

redguardtoo commented 2 years ago

5d8728e0 donot install dictionary which is built in package since emacs28 (Chen Bin)

atomsi commented 2 years ago

重启了不下10次,刚才启动 emacs-init-time: 96.1078b, messages: 1 Importing package-keyring.gpg...done 2 Contacting host: mirrors.163.com:443 3 Opening TLS connection to ‘mirrors.163.com’... 4 Opening TLS connection with ‘gnutls-cli --x509cafile /etc/pki/tls/certs/ca-bundle.crt -p 443 mirrors.163.com’...done 5 Opening TLS connection to ‘mirrors.163.com’...done 6 Contacting host: mirrors.163.com:443 [5 times] 7 Package refresh done 8 ‘dictionary’ is already installed 9 Loading /home/tom/.emacs.d/.session...done 10 Loading /home/tom/.emacs.d/company-statistics-cache.el (source)...done 11 Saving file /home/tom/.emacs.d/custom-set-variables.el... 12 Wrote /home/tom/.emacs.d/custom-set-variables.el 13 For information about GNU Emacs and the GNU system, type C-h C-a. 14 Package tls is deprecated 15 96.107851 seconds

atomsi commented 2 years ago

或者这样问一下, emacs启动时为什么要多次建立TLS连接?这个可能就是我这里耗时的主要原因。 如果用Emacs -q emacs-init-time: 0.00094 多谢!

redguardtoo commented 2 years ago

更新到最新配置就行了. emacs就是这么设计的, 每个包都要重新连接服务器

atomsi commented 2 years ago

it works! thanks for your update