Skip to content

Under Windows OS emacs --daemon is more slowly than the normal way #3063

@lld2001

Description

@lld2001

What are you trying to achieve?
emacs.exe --daemon need about 20s to strart.
emacs.exe need 7s to start.
I don't know if it is normal.

What have you tried?

download emacs 27.0.91,

clone from latest doom emacs,

doom install

  1. run emacs.exe --daemon

  2. run emacs.exe

The first is far more slowly to start.

System information

```
emacs   version    27.0.91
        features   XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS PDUMPER LCMS2 GMP
        build      Apr 20, 2020
        buildopts  (--without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static')
        windowsys  w32
        daemonp    daemon
doom    version    2.0.9
        build      
        dir        ~/.doom.d/
system  type       windows-nt
        config     x86_64-w64-mingw32
        shell      E:/emacs/libexec/emacs/27.0.91/x86_64-w64-mingw32/cmdproxy.exe
        uname      n/a
        path       (D:\Python36\Scripts\ D:\Python36\ D:\Python36 f:\cygwin64\bin C:\Program Files (x86)\Common Files\Oracle\Java\javapath C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0\ C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static C:\Program Files\Git\cmd C:\Program Files\nodejs\ C:\Program Files (x86)\MySQL\MySQL Utilities 1.6\ d:\Program Files\Microsoft VS Code\bin C:\Program Files\Pandoc\ C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\ C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\ C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ C:\Program Files\dotnet\ e:\emacs\.doom.d\bin e:\emacs\.doom.d\bin e:\emacs\.doom.d\bin\pdf-tools e:\emacs\.doom.d\bin\mspyls D:\jdk1.6.0_37\bin D:\javaTools\apache-maven-3.2.5\bin C:\Users\hh\AppData\Roaming\npm D:\Python36 D:\Python36\Scripts C:\Program Files\Docker Toolbox C:\Program Files (x86)\WinRAR e:\emacs\bin e:\emacs\.emacs.d\bin C:\Program Files (x86)\Mozilla Firefox C:\Users\hh\.dotnet\tools e:\emacs\.doom.d\bin e:\emacs\.doom.d\bin e:\emacs\.doom.d\bin\pdf-tools e:\emacs\.doom.d\bin\mspyls ~/libexec/emacs/27.0.91/x86_64-w64-mingw32/)
config  envfile    nil
        elc-files  0
        modules    (:completion (company +auto) (ivy +icons +prescient) :ui deft doom doom-dashboard hl-todo hydra indent-guides modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe (window-select +numbers) workspaces zen :editor (evil +everywhere) file-templates fold lispy multiple-cursors rotate-text snippets word-wrap :emacs (dired +icons) electric ibuffer vc :tools debugger (eval +overlay) (lookup +docsets) (lsp company) magit pdf rgb upload :lang data emacs-lisp javascript ledger markdown (org +dragndrop +jupyter +pandoc +journal +pomodoro +present) php (python +lsp +pyenv +conda +peek) web :app calendar :config (default +bindings +snippets +smartparens))
        packages   ((spacemacs-theme :pin e088bff4f1) (helm) (counsel-etags) (imenu-list) (importmagic) (color-rg :recipe (:host github :repo manateelazycat/color-rg)) (baidu-translate) (posframe) (find-file-in-project) (keyfreq) (tablist) (org-learn :recipe (:host github :repo emacs-straight/org-mode :files (contrib/lisp/org-learn.el)) :pin 30d0b6e1f6) (org-drill) (org-ref) (org-noter :recipe (:local-repo ~/local/org-noter/) :ignore t) (cal-china-x) (sdcv :recipe (:local-repo ~/local/sdcv) :ignore t))
        unpin      (n/a)
        elpa       (n/a)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:supportA request for user support: questions, how-to's, and discussionsos:windowsPertains specifically to Windowsre:emacs:daemonPertains to the Emacs daemonstatus:resolvedIssue was addressed internally

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions