[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suggest: Byte-Compile package-quickstart on a separate thread?
From: |
T.V Raman |
Subject: |
Re: Suggest: Byte-Compile package-quickstart on a separate thread? |
Date: |
Mon, 28 Dec 2020 10:38:01 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"T.V Raman" via "Emacs development discussions." <emacs-devel@gnu.org>
writes:
Here's a small patch that uses make-thread:
git diff package.el
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index bc450b09d0..104c2d8e71 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -4108,7 +4108,7 @@ package-quickstart-refresh
;; no-update-autoloads: t
;; End:
"))
- (byte-compile-file package-quickstart-file)))
+ (make-thread #'byte-compile-file package-quickstart-file)))
(defun package--imenu-prev-index-position-function ()
"Move point to previous line in package-menu buffer.
> Haven't written the patch yet;-)Stefan Monnier writes:
> > > The faster startup is nice, but one consequence of byte-compiling
> > > package-quickstart after package updates is that emacs blocks for a
> > > while. I myself use package paradox which already does the
> > > download/unpack asynchronously; could we also move the
> > > byte-compilation of package-quickstart to a separate thread?
> >
> > Sounds like a good idea, but you forgot to attach the patch to
> > your message.
> >
> >
> > Stefan ;-)
>
> --
> ?7?4Id: kg:/m/0285kf1 ?0?8?7?4
--
Thanks,
--Raman
?7?4 Id: kg:/m/0285kf1 ?0?8