org-wild-notifier.el icon indicating copy to clipboard operation
org-wild-notifier.el copied to clipboard

cause over 100 process to start in first org-agenda call

Open hermanhel opened this issue 2 years ago • 1 comments

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>
图片

hermanhel avatar May 06 '22 12:05 hermanhel

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.

akhramov avatar May 06 '22 12:05 akhramov

seems like pebkac

colonelpanic8 avatar Sep 15 '23 06:09 colonelpanic8