-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
gc-cons-threshold startup time speedup #3011
Comments
There already is a similar line in https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Bdistribution/spacemacs-core/config.el#L229, but I guess it's executed a bit too late to help startup time? Moving that line to |
Didn't help much? Maybe it's the old game dev in me coming out, but 400ms is a super long time! :) I also experimented with compiling all the elisp in |
Also, man the Spacemacs architecture has changed since I last contributed in like March... |
See #2937 for that. |
I made the change, thank you :-) |
It may be good to restore it to be closer to the default after init finishes. See this comment |
Indeed, thank you ! PR welcome :-) |
I guess you all saw the same reddit thread I did. After I read it, I went searching for the proper value to set it to, and found this: http://lists.gnu.org/archive/html/help-gnu-emacs/2007-09/msg00241.html From the email:
It makes me wonder if manually setting |
Good question I think it does not, or it would be surprising it does. Setting this variable should set the initial amount but not prevent the % feature to happen. |
Hey,
I guess this is more a system-specific thing, in that it probably shouldn't be set by default, but setting
(setq gc-cons-threshold 100000000)
as the first line ininit.el
took my startup time from 5.5s to 3.5, which is a pretty decent improvement. (Yes, I use emacs as a persistent server, emacsclient etc, but still, I like short startup times)I guess just a thought? I'm sure everyone's seen the thread on reddit I got the idea from.
Cheers
The text was updated successfully, but these errors were encountered: