I wonder if it would be possible to (optionally) cache the output of the backlinks buffer (*org-roam* buffer).
Nodes with lots of backlinks (say around a 1000) take a couple of seconds even a fast machine, and on Android/Termux, this can take a couple of minutes (!). Could the actual output could be cached? (And then org-node-fakeroam--accelerate-get-contents could optionally fetch the cached content.)
Figuring out when to recalculate the backlinks would be tricky though. (Though maybe at least for changes that org-node knows about this could be managed somewhat [things that changed in the background wouldn't be caught, but that's perhaps an acceptable cost].)
Using org-node on Android/Termux has addressed a lot of the issues that I've faced in terms of slow speed[0] of org-roam operations, but backlinks remain an issue.
[0]: I think it's all down to Android's use of some sort of FUSE overlay file system (even for the real internal storage). Whatever the exact cause for the slowness, it's definitely about file-system access and not raw processing or anything.
I wonder if it would be possible to (optionally) cache the output of the backlinks buffer (
*org-roam*buffer).Nodes with lots of backlinks (say around a 1000) take a couple of seconds even a fast machine, and on Android/Termux, this can take a couple of minutes (!). Could the actual output could be cached? (And then
org-node-fakeroam--accelerate-get-contentscould optionally fetch the cached content.)Figuring out when to recalculate the backlinks would be tricky though. (Though maybe at least for changes that org-node knows about this could be managed somewhat [things that changed in the background wouldn't be caught, but that's perhaps an acceptable cost].)
Using org-node on Android/Termux has addressed a lot of the issues that I've faced in terms of slow speed[0] of org-roam operations, but backlinks remain an issue.
[0]: I think it's all down to Android's use of some sort of FUSE overlay file system (even for the real internal storage). Whatever the exact cause for the slowness, it's definitely about file-system access and not raw processing or anything.