-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High usage of CPU when emacs is idle #43
Comments
@xbelanch Thanks for reporting the issue. I am not sure why it is adding load on CPU. Will check on a windows machine. |
@ChillarAnand check out the last init.el I have before I need to comment the real-auto-save package reference if it helps: https://github.com/xbelanch/personal-emacs-dot-files/tree/development |
I'm also experiencing this on a Mac. I think it's related to this commit: ffef949 When I Profiler output:
|
After #42 change, all my CPU is fully occupied by Emacs. Run Emacs using below debug init.el and open init.el;; ~/.debug.emacs.d/real-auto-save/init.el
;; you can run like 'emacs -q -l ~/.debug.emacs.d/{{pkg}}/init.el'
(when load-file-name
(setq user-emacs-directory
(expand-file-name (file-name-directory load-file-name))))
(prog1 "prepare leaf"
(prog1 "package"
(custom-set-variables
'(package-archives '(("org" . "https://orgmode.org/elpa/")
("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/"))))
(package-initialize))
(prog1 "leaf"
(unless (package-installed-p 'leaf)
(package-refresh-contents)
(package-install 'leaf))))
(leaf real-auto-save
:ensure t
:hook (find-file-hook)
:config
(real-auto-save-activate-advice)) ScreenshotsEnvironment:$ uname -a
Linux conao-manjaro-helios 5.4.35-1-MANJARO #1 SMP PREEMPT Thu Apr 23 10:54:43 UTC 2020 x86_64 GNU/Linux
conao-manjaro-helios:~/dev/repos/leaf-keywords.el conao
$ emacs --version
GNU Emacs 26.3
Copyright (C) 2019 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING. |
I can confirm this issue with:
My configuration:
After When I use |
Thanks, @conao3 for the fix. This issue is fixed in the latest version. |
I can confirm that this fix resolves the issue at my side. |
Thanks, @novoid Closing this issue. If anyone is still facing this issue with latest version, please re-open it. |
See the reddit thread: https://www.reddit.com/r/emacs/comments/g4ojo9/emacs_freezes_on_windows_10/
The text was updated successfully, but these errors were encountered: