Org-agenda search is being unreasonably slow, taking several seconds to search through ~100 small files (a simple python program is practically instantaneous). I'm not familiar with proper emacs profiling but pausing in the middle of the search essentially
always gives the stack trace below, where some recursion attempting to figure out file names is waiting on w32-long-file-name.
I've also attached my init.el, though as far as I can tell this isn't interference from another package.
Debugger entered--Lisp error: (quit)
w32-long-file-name("c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam")
file-truename("c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam" (99) (nil))
file-truename("c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2...")
file-equal-p("c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/t..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2...")
#f(compiled-function (a b) #<bytecode 0x29d969d>)("c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/t..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2...")
cl--position("c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/t..." ("c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." ...) 0 125)
cl--delete-duplicates(("c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/B..." "c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/n..." "c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/t..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
...) (:test #f(compiled-function (a b) #<bytecode 0x29d969d>)) t)
cl-remove-duplicates(("c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/B..." "c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/n..." "c:/Users/rmast/AppData/Roaming/.emacs.d/orgfiles/t..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
"c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..." "c:/Users/rmast/AppData/Roaming/.emacs.d/org-roam/2..."
...) :test #f(compiled-function (a b) #<bytecode 0x29d969d>))
org-search-view(nil)
funcall-interactively(org-search-view nil)
call-interactively(org-search-view)
org-agenda(nil)
funcall-interactively(org-agenda nil)
call-interactively(org-agenda nil nil)
command-execute(org-agenda)