NicolasPetton / nroam

Org-roam backlinks within org-mode buffers
GNU General Public License v3.0
108 stars 6 forks source link

Make crawler not crawl and as a consequence ... speed up things a lot! #1

Closed Whil- closed 3 years ago

Whil- commented 3 years ago

Do with this what you wish. :)

Some might consider it "ugly" since we're introducing a special hidden work-buffer for the crawler to use. Maybe a temp-buffer would be just as good. I didn't profile it to see how big of an improvement the declared hidden buffer is compared to just using temp-buffers. But compared to the original code, this it's fast! Orders of magnitude. At least on windows machines. Should be the same on Linux. Also: No hooks, no bloat in the buffer-list for the user.

Whil- commented 3 years ago

There, updated per review comments. Not sure if you wanted something more elaborate, but at least the is a docstring now.

NicolasPetton commented 3 years ago

Awesome, thanks!