org-wild-notifier.el
org-wild-notifier.el copied to clipboard
cause over 100 process to start in first org-agenda call
Environment: macOS BigSur 11.5.2, Emacs 29.0.50, Org-mode 9.4.6
When theres lots of agenda files, e.g. 200-300 files (with org-roam), the first org-agenda call after startup will start over 100 process, causing a very long freeze in Emacs (compare to adding org-wild-notifier-mode to org-mode-hook) and serious slow down (the process can use 30% CPU each, according to Monitor. My Browser can't even load anything either from localhost or internet before I manually clean them up).
in list-processes, the
I think it's probably a strike of rightious after you have put so much files into agenda list, but I think there's gotta be a way to tweak around this.
part of the list-process buffer
emacs 48347 run *emacs* -- Main /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/hermanhe/.emacs.d/elpa/async-20210823.528/async.elc -batch -f async-batch-invoke <none>
emacs<100> 48868 run *emacs*<101> -- Main /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/hermanhe/.emacs.d/elpa/async-20210823.528/async.elc -batch -f async-batch-invoke <none>
emacs<101> 48871 run *emacs*<102> -- Main /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/hermanhe/.emacs.d/elpa/async-20210823.528/async.elc -batch -f async-batch-invoke <none>
emacs<102> 48874 run *emacs*<103> -- Main /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/hermanhe/.emacs.d/elpa/async-20210823.528/async.elc -batch -f async-batch-invoke <none>
emacs<103> 48877 run *emacs*<104> -- Main /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/hermanhe/.emacs.d/elpa/async-20210823.528/async.elc -batch -f async-batch-invoke <none>
emacs<104> 48880 run *emacs*<105> -- Main /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/hermanhe/.emacs.d/elpa/async-20210823.528/async.elc -batch -f async-batch-invoke <none>
emacs<105> 48883 run *emacs*<106> -- Main /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/hermanhe/.emacs.d/elpa/async-20210823.528/async.elc -batch -f async-batch-invoke <none>
emacs<106> 48886 run *emacs*<107> -- Main /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/hermanhe/.emacs.d/elpa/async-20210823.528/async.elc -batch -f async-batch-invoke <none>

The library should be used as a minor mode, I would not recommend adding it to the hooks.
When you run it (e.g. through M-x org-wild-notifier-mode
), it will automatically check all the agenda files you have.
seems like pebkac