Improving performance of node-find et. al

I encourage you to try this minor mode:

Enable with org-roam-gt-mode-enable
and disable with org-roam-gt-mode-disable

This is the result of discussions with @akashp

  1. It optimizes the creation of the nodes (the original constructor is very slow)
  2. It replaces the code to format the node given the template. I gives the option of replacing the processing of the template (which is currently very expensive) with a call to a function.

The overall result is that, a typical database (say 1-2 k nodes) it feels instantaneous.

The best part is that there is no caching to worry about.

I plan to extend this minor mode with my improved template processing for org-roam (more in line with org templates).

I have been using it for more than 1 month and it seems stable. Since it does not modify the database, there is no risk to those using it (simply disable the minor mode if you don’t like it)

4 Likes