I noticed recently that scrolling up/down in my #Emacs has been very slow. Used M-x profiler-start/stop/report to determine the reason.

Removing orderless makes it very fast, and this diff makes it fast enough (not sure why):

(use-package orderless :straight t :custom - (completion-styles '(orderless)) - (completion-category-defaults nil) - (completion-category-overrides '((file (styles . (partial-completion))))) + (completion-styles '(orderless basic)) + (completion-category-overrides '((file (styles basic partial-completion)))) )

@srijan Scrolling in general, or just in the minibuffer?

@ambihelical In normal buffers, not in minibuffer. That's why I'm not sure why/how orderless is causing this. But removing orderless definitely makes it super snappy.

@srijan Sounds like poor interaction between packages. I suspect it's with helm but that's probably just my personal bias against big complicated packages 🤷

@ambihelical I don't use helm, but it could be something to do with vertico.

Here's the profiler report from right now:
Follow

@srijan Apologies, I took a quick look at your github, thought I saw helm in your init.

Are you sure you are measuring scrolling? I tried profiling and got similar report as yours, but I realized I didn't spend much time scrolling compared to time in the minibuffer to run M-x profiler-stop. When I scrolled for a longer time, it looked completely different. However I'm not seeing any scrolling slowness. (I'm also using vertico/orderless).

Probably better practice would be to bind a key to profile-stop, but I didn't try it since I'm not seeing the issue you are seeing.

@ambihelical yeah, that's an old config on github, need to update.

Interestingly, I'm not able to reproduce the slowness issue today even with the original config, and I don't have the original profiler report saved. Maybe some other package caused it, and got fixed by an update.
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.