From: Xebar Saram <zeltakc@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: Using an org based init file slows down emacs startup by 50x..help needed :(
Date: Sat, 10 Dec 2016 10:36:01 +0200 [thread overview]
Message-ID: <CAOQHXPrb6itymsTwg64Q-1v2Z24-QDwRoM0a4nSP_P83te5bAQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1704 bytes --]
Hi all
So after a few months of frustration today i discovered the issue that's
been bothering me for a long time..the REALLY slow emacs startup (sometimes
5 minutes or more).
The cause is the org mode init file i use. what i currently have in my
setup is
A. this init.el:
(require 'package)
;since we are using use-package-don't autoload anythings
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("marmalade" . "
https://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
;; org maybe suspect of hanging melpa, if you have hangs disable this first
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
;; Initialize installed package
(package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(org-babel-load-file (expand-file-name "~/.emacs.d/settings.org"))
B. My config stored in settings.org which alot of lisp code (like 17,000
lines..yeah i like to tinker :))
Using this method i discovered that every time i make a small change to
setting.org and restart emacs the setting.org gets tangled to settings.el
and emacs takes nearly 5!!! minutes to start..yeah thats painful as you can
imagine.
BUT what i discovered today is that if i just stick my config chunks from
setting.org (ie the tangled setting.el file) into init.el, emacs starts
super fast each time, even when i change the init.el file!
can anyone help me with this, i really would appreciate you guys help with
this as its driving me mad :)
thx alot in advance
Z
[-- Attachment #2: Type: text/html, Size: 2835 bytes --]
next reply other threads:[~2016-12-10 8:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-10 8:36 Xebar Saram [this message]
2016-12-10 8:43 ` Using an org based init file slows down emacs startup by 50x..help needed :( Nicolas Goaziou
2016-12-10 12:53 ` Xebar Saram
2016-12-10 18:33 ` Xebar Saram
2016-12-10 20:24 ` Thomas S. Dye
2016-12-12 12:24 ` Julian M. Burgos
2016-12-12 10:03 ` Rainer M Krug
2016-12-12 21:30 ` Grant Rettke
2016-12-13 7:19 ` Xebar Saram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOQHXPrb6itymsTwg64Q-1v2Z24-QDwRoM0a4nSP_P83te5bAQ@mail.gmail.com \
--to=zeltakc@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).