(Emacs)+early-init native-compilation options

Set to 4 workers at the start to make compilation at least as fast as
possible: my laptop has 4 cores so it'll just slow it down until early
compilation is done, while my desktop can still keep going as it has 8
threads.  In config.org this is setup correctly so the rest of the
config (which is the much larger part) uses a system dependent number
of cores.
This commit is contained in:
2022-09-14 00:14:06 +01:00
parent df8c384630
commit 81d25daf61
3 changed files with 22 additions and 2 deletions

View File

@@ -140,6 +140,21 @@ common use of this macro.
`(cond
,@current-lisp)))
#+end_src
In [[file:early-init.el][early-init.el]] I set the number of native-workers to 4, which isn't
necessarily optimal for the rest of my config to use depending on the
machine I use:
- On my laptop (spiderboy) I'd prefer to have it use 2-3 threads so I
can use the rest of the laptop while waiting for compilation
- On my desktop (oldboy) I'd prefer to use 4-6 threads as I can afford
more and get a much faster compilation as a result.
#+begin_src emacs-lisp
(+dx/sys-name-cond
("spiderboy"
(setq native-comp-async-jobs-number 3))
("oldboy"
(setq native-comp-async-jobs-number 6)))
#+end_src
** Clean buffer list
Instead of cleaning my buffer list manually, just use this. Preserves
any buffers in ~+dx/keep-buffer~ and kills the rest.