Questions tagged [performance]
is for Emacs performance-related issues. Use additional tags to indicate which aspects of Emacs the performance issue is about: startup, navigation, search, screen updates, compilation, execution, debugging, and so on.
25
questions with no upvoted or accepted answers
4
votes
0answers
1k views
byte-compile much slower in X (vs. -nw)
Setup
Windows 10 host with X server (VcXsrv)
Linux guest (Arch) in virtual machine (VMware)
Benchmark
(defmacro measure-time (&rest body)
"Measure the time it takes to evaluate BODY."
`(let ...
3
votes
0answers
174 views
csv-mode is very slow
Just about any buffer with csv-mode enabled gets very slow/unresponsive, regardless of how big the file is. It takes up to half a second to jump to the next line/character. Any idea why that is?
I ...
3
votes
0answers
145 views
Profiling org-mode init file
My initialization file is organized in org-mode with src snippets. Is there a way I can profile it to see which snippets take the most time to evaluate? When my initialization file was in Elisp, I was ...
2
votes
0answers
39 views
Is (forward-char N)'s runtime complexity O(N)?
Internally, the text of a buffer is stored as a char array. The encoding used is based on UTF-8, which may use a variable number of bytes to represent different code points. Does the variable-length ...
2
votes
0answers
126 views
hide-show with linum
When working on huge files, it seems that when hide-show collapses a large multi-line block, linum still creates hidden overlays for every line in the hidden block leading to unresponsive emacs. Is ...
2
votes
0answers
70 views
how can I debug or fix slowness in org-cycle?
running org-cycle appears to hang sometimes. I've run
M-x profiler-start
<tab> ;; bound to org-cycle
C-g ;; to cancel apparently-hung command
M-x profiler-report
and I see that a bunch of time ...
1
vote
0answers
27 views
Package autoloading and use-package
I'm a beginner on emacs and I don't understand packages autoloading and use-package.
I see a lot of configs online which use 'use-package' and recommends installing packages with package manager (...
1
vote
0answers
47 views
How can one debug a situation when emacs is unresponsive on Windows?
There is an operation in my setup which makes emacs unresponsive with high CPU.
I checked the emacs process with process monitor, but it does not wait for an other process, so I guess it must be ...
1
vote
0answers
108 views
EWW very slow opening of certain pages
This question was asked on stackoverflow. Just cross posting it here for better visibility. I am too facing the same issue.
I'm using EWW Emacs browser for opening various remote pages(mostly ...
1
vote
1answer
66 views
How to measure the performance of the mode-line?
Currently when making changes to the mode-line, I try to write efficient elisp,
However I don't know for sure if what I'm doing is in fact efficient.
How could I test the mode-line performance?
For ...
1
vote
0answers
128 views
Poor performance with Tabbar
Tabbar is refreshing groups like 14+ times at once (probably number of tabs) and causing severe slowness with the mods I made on it (lots of IO to sort tabs in mod time). What is the preferred way to ...
1
vote
0answers
163 views
Debugging slow find-file performance
Trying to figure out why find-file (C-x C-f) operations are taking a long time on Windows 10 with emacs 26.3. I tried to do profiling and got following results.
- command-execute ...
1
vote
1answer
36 views
Troubleshooting a hanging `list-processes`
Normally I'd use M-x list-processes to see what Emacs is running in the background. But in this case list-processes itself hangs. What is the right thing to do in this situation?
1
vote
0answers
67 views
Performantly filter against a custom time-like property
My agenda view processes many items with SCHEDULED and DEADLINE fields, and fully generates from scratch in about 0.3s. However, if I append CUSTOM_SCHEDULED<"<now>" to my agenda view ...
1
vote
0answers
50 views
How are unrelated modes enabled?
I've been an emacs user for about a year now and I use it for Haskell programming. I chose to go the vanilla emacs route and customized a plain init file as I went along.
Over time, however, I ...
1
vote
0answers
354 views
Remove scrollbar, faster
I like a clean interface. One without the clutter of scroll bars, or menu bars. So, to remove them, I have the following in my init.el
(progn
(menu-bar-mode -1)
(scroll-bar-mode -1)
(tooltip-...
1
vote
0answers
109 views
C++-mode indenting performance depends on length of previous function?
Using c++-mode in emacs23.
UPDATE: In response to some early comments, I tested on emacs24 and emacs25, and see exactly the same behavior. I don't have convenient access to emacs26 or emacs27 (25 ...
0
votes
0answers
42 views
Slow markdown-mode as Emacs spends lots of time fontifying
Emacs on my Mac got upgraded when I upgraded some other package in Homebrew and now working with Markdown files is very slow. I'm now running the railwaycat/emacsmacport/emacs-mac package version with ...
0
votes
0answers
45 views
How to speed up `undo-tree-visualizer-toggle-diff` and stop tree movement when cursor is not pressed?
After opening undo-tree-and-diff and enabling undo-tree-visualizer-toggle-diff by pressing d; I start to move in the history tree:
If I just press up or down cursore for few seconds ; undo-tree keeps ...
0
votes
0answers
52 views
Windows File open SLOW
Windows 10
Emacs 27.1
From C-x C-f File
Till seeing the file actually open can take almost a minute!
Tried emacs instead of runemacs.
Also Menu-file-visit
All the same
I think there's some Mcafee ...
0
votes
0answers
22 views
How to improve ājediā package's load time
When I try to use jedi package I get following message in the minibuffer.
This feature requires the ājediā package to be installed. Please check āelpy-configā for more information.
Elpy Configuration
...
0
votes
0answers
40 views
emacsclient spending a lot of time resetting faces
When I launch emacsclient or make a new frame it spends ~2s in:
- make-frame 312 42%
- frame-creation-function ...
0
votes
0answers
161 views
Performance issue of c-mode
When I'm pressing C-p/n moving the cursor around, the redisplaying is quite lagging. A profile of CPU give
+ command-execute 527 59%
- ...
0
votes
1answer
119 views
Speed issue with omnisharp go-to-definition
Getting a rather sizable speed issue with using go-to-definition from omnisharp. Ran the profiler, and received nearly 50% of the cpu time dedicated between:
isearch-printing-char
and
omnisharp-go-...
0
votes
0answers
142 views
Why is avy-goto-line so slow?
If I open a file with, say, 2 lines, then when I call avy-goto-line emacs shows me in the beginning of each line the keybinding to move the cursor over there.
But try it in a bit longer file (I use a ...