-
The delay went away when removing the three I find myself in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The problem here is that Consult assumes that Unfortunately project.el has its limitations and the assumption doesn't really hold. I always wondered why performance of all the project functions is not a higher priority, in particular determining the project root. One could imagine some caching mechanism. This is also what I suggest for your use case. Use a custom project root function which bails out quickly in guix directories or which implements its own caching. I also use my own project root function which bails out in slow remote directories. I should also add some Guix criticism - you wrote that the store has ~200k entries. This seems like a problematic design. Not that the kernel or the fs cannot handle this, but there is simply too much in user space which cannot. You could maybe report Emacs bugs if you think that |
Beta Was this translation helpful? Give feedback.
The problem here is that Consult assumes that
project-current
is very cheap. (Recently Emacs got aproject-mode-line
which makes the same assumption, even worseproject-current
is executed during redisplay!)Unfortunately project.el has its limitations and the assumption doesn't really hold. I always wondered why performance of all the project functions is not a higher priority, in particular determining the project root. One could imagine some caching mechanism. This is also what I suggest for your use case. Use a custom project root function which bails out quickly in guix directories or which implements its own caching. I also use my own project root function which bails out in slow re…