[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 05 May 2016 14:38:17 +0100
Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)
Uwe Brauer <firstname.lastname@example.org> writes:
> > use-package speeds up startup times by delaying the loading the
> > packages that you can afford to.. for example, you do not need to
> > load org-mode until you are in a buffer with org-mode major mode or
> > you call one of the commands like org-agenda that autoloads
> > org-mode. So if you load org-mode using use-package and its ":defer
> > t" or ":commands (...)" or similar load-deferring options, you will
> > see an improvement in the startup time.
> That sounds a bit like autoloads.
It's similar but different. With autoloads, when you first use a
function in a package, the package loads, Emacs stalls. With defer, it
loads in the idle cycle.
I also use it for global minor-modes like Helm. Normally, it's loaded by
the time you want it.
> So the time you gain at startup you might loose on run time, do I
> understand that correctly? Ok makes sense, there is no such thing as a
> free lunch...
idle time, rather than run time. It's a good compromise.
Re: use-package, Stefan Monnier, 2016/05/03
- Re: use-package, (continued)
- Re: use-package, Kaushal Modi, 2016/05/11
- Re: use-package, Phillip Lord, 2016/05/13
- Re: use-package, Stefan Monnier, 2016/05/13
- Re: use-package, Phillip Lord, 2016/05/14
- Re: use-package, Stefan Monnier, 2016/05/14
- RE: use-package, Drew Adams, 2016/05/13
- Re: use-package, Phillip Lord, 2016/05/16
- RE: use-package, Drew Adams, 2016/05/16
- Re: use-package, Phillip Lord, 2016/05/11
- Re: use-package, Uwe Brauer, 2016/05/05
- Re: use-package,
Phillip Lord <=