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

  1. start org-roam-server-mode on org-roam-directory with ~200 files
  2. open one or two files by both org-roam-find-file in emacs and org-roam-protocol click in org-roam-server browser window
  3. switch to completely unrelated buffer like your emacs config file
  4. turn on emacs profiler
  5. jk scroll for couple of seconds (basically DoSing emacs)
  6. 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%
...

full report

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.

full report

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)

Most upvoted comments

Now I am enjoying org-roam without any limit.

Awesome!