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.

Filter by
Sorted by
Tagged with
1
vote
2answers
385 views

s3fs is too slow for emacs

I have set up a mount point using the s3fs FUSE filesystem and autofs to talk to an Amazon S3 bucket, but it is excruciatingly slow to edit a file in the bucket in emacs - it is basically unusable due ...
1
vote
1answer
45 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
1answer
86 views

Long Emacs start-up time (20~60s) on Windows 10

I have a working setup of emacs on Windows 10 that I like so far. However, I find that emacs start-up takes very long. It can be anywhere from 20s to 60s. I tried installing the benchmark-init package ...
1
vote
0answers
75 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
72 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
30 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
65 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
48 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
261 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
93 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
1answer
69 views

How to throttle or debounce an elisp method?

I have a very file system intensive function that's being called many times a second. Wish to slow things down a little, anyone knows a way to throttle that function call in elisp? [EDIT - 04/12/20]: ...
0
votes
1answer
60 views

Profile performance for a given command

Say I create a quick keyboard macro, but find that executing it in quick succession is extremely slow. How can I determine in what functions or packages this command is spending most of its time? ...
0
votes
1answer
42 views

How to diagnose emacs running at 100% cpu

I'm having a problem where occassionally emacs will run at 100% cpu, and just hang forever. I've attached gdb to the process, and this is the stacktrace: #0 0x00007fc210e5c5bb in pthread_sigmask () ...
0
votes
0answers
32 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
26 views

Throttle transient-mark-mode highlighting?

When I'm using remote X forwarding to run X toolkit emacs and I press C-SPC and move the cursor around, things get very slow. The emacs profiler says all the time is spent in line-move-visual, but I ...
0
votes
0answers
35 views

Emacs is extremly slow on battery, normal on power

I have a weird problem where my emacs setup is extremely slow (as in takes a long time to show typed characters) when my laptop is running on battery. Once I connect it to power, the speed is normal. ...
0
votes
0answers
14 views

Memoize with cache on filesystem persisted between sessions

The memoize package provides a memoize wrapper that installs a memoized function over the original functions. (memoize 'expensive-function) will replace expensive-function in place with a memoized ...
0
votes
0answers
118 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
101 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
1answer
500 views

Debugging emacs 24.5 slow startup (WSL)

I'm running emacs24-nox on Ubuntu trusty on Windows Linux Subsystem, and I'm trying to figure out why the startup time is slow. I've inspected the startup with strace and found two calls to poll that ...
0
votes
0answers
123 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 ...
0
votes
1answer
618 views

why tmux under ansi-term so slow?

I use colorized output in ghci. And if run it: in comint-mode, or in eshell, then colors displayed fine, but a lot of escape sequences displayed like ^A^Bλ ^A^B> ^A^B^B. in ansi-term, then I got ...

1
2