org-roam-server: org-roam-server slows down unrelated interactive commands
Hi, I am relatively new to org-roam world, and I’ve been using it just few days. But I started to notice weird performance issues occurring when executing unrelated interactive commands and I think this issue is related to org-roam-server.
Steps to reproduce
- start
org-roam-server-modeonorg-roam-directorywith ~200 files - open one or two files by both
org-roam-find-filein emacs andorg-roam-protocolclick inorg-roam-serverbrowser window - switch to completely unrelated buffer like your emacs config file
- turn on emacs profiler
jkscroll for couple of seconds (basically DoSing emacs)- turn off emacs profiller
Now you can see that aside from expected redisplay_internal, there is httpd--filter taking most of the CPU time.
...
+ httpd--filter 474 55%
+ redisplay_internal (C function) 233 27%
...
When I do something more natural in emacs, like searching for something in M-x and switching between few buffers, it is a server-process-filter which takes most of the CPU time.
Expectations
Emacs should not feel sluggish when doing things unrelated to org-roam.
My setup
emacs 27.0.91, Arch Linux, vanilla doom emacs with org-roam and org-roam-server from github. Everything latest and up-to-date.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (15 by maintainers)
Awesome!