Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow startup of compile command when emacs is started from GUI #672

Open
nicolasdespres opened this issue Mar 9, 2024 · 1 comment
Open
Labels
native comp Issue is related to native compilation

Comments

@nicolasdespres
Copy link

nicolasdespres commented Mar 9, 2024

Issue description

When emacs-plus@29 is started from the dock (as a regular application) running a trivial command such echo foo with M-x compile takes nearly a second to start, whereas it is instant when emacs is started from the terminal. The compilation mode buffer does show quickly in both cases it is just the command that it is slow to start. Emacs has full disk access. Any idea how to solves this ?

Here my compilation flags: --with-native-comp --with-compress-install --with-poll --with-imagemagick --with-mailutils
macOS version: Sonoma 14.3.1 (23D60)

@d12frosted d12frosted added the native comp Issue is related to native compilation label Aug 25, 2024
@jimeh
Copy link

jimeh commented Nov 12, 2024

One thing that could be slowing down invocations from the GUI instance is that Emacs itself is not marked as a Developer Tool in macOS. In Settings > Privacy & Security > Developer Tools, try adding your Emacs app. This essentially makes Gatekeeper skip some live checks against remote servers for known malware whenever it runs any executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
native comp Issue is related to native compilation
Projects
None yet
Development

No branches or pull requests

3 participants