[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suppressing native compilation (short and long term)
From: |
Eli Zaretskii |
Subject: |
Re: Suppressing native compilation (short and long term) |
Date: |
Fri, 07 Oct 2022 15:40:53 +0300 |
> Date: Thu, 6 Oct 2022 13:49:44 +0200
> From: tomas@tuxteam.de
> Cc: emacs-devel@gnu.org
>
> On Thu, Oct 06, 2022 at 01:13:40PM +0300, Eli Zaretskii wrote:
> > > Date: Thu, 6 Oct 2022 11:02:44 +0200
> > > From: <tomas@tuxteam.de>
> > >
> > > > > The solution I would propose would be to defer JIT native-compilation
> > > > > until the computer is on AC power, as determined by battery.el.
> > > >
> > > > We could have such a feature, but how to implement it? If we use a
> > > > timer for that, the timer itself will drain the battery.
> > >
> > > Guessing from a previous mail by you, the correct way to achieve this
> > > is to compiler results to a non-existent directory, right?
> >
> > No, this is a completely different use case.
>
> Now I'm confused. Does the non-existence of a target directory
> disable compilation or just the writing of the compilation's
> results?
??? What does the existence of the target directory have to do with
the use case of laptop running on batteries?
> > What would you like to be documented, exactly?
>
> that pointing HOME a non-existing directory is the way to either
> inhibit JIT compilation or writing of the compilation results to
> disk (depending on the answer above).
That is not something we should advertise, I think, because it
shouldn't be needed. We do that in the test suite, but not in order
to disable native-compilation.
Whether there are valid use cases where users would need to disable
native-compilation is still an open question. The use case presented
by Po Lu does not require disabling native-compilation, it requires
_delaying_ it until some opportune moment.
- Re: Suppressing native compilation (short and long term), (continued)
- Re: Suppressing native compilation (short and long term), Eli Zaretskii, 2022/10/05
- Re: Suppressing native compilation (short and long term), Po Lu, 2022/10/05
- Re: Suppressing native compilation (short and long term), Eli Zaretskii, 2022/10/06
- Re: Suppressing native compilation (short and long term), Po Lu, 2022/10/06
- Re: Suppressing native compilation (short and long term), Eli Zaretskii, 2022/10/06
- Re: Suppressing native compilation (short and long term), tomas, 2022/10/06
- Re: Suppressing native compilation (short and long term), Eli Zaretskii, 2022/10/06
- Re: Suppressing native compilation (short and long term), tomas, 2022/10/06
- Re: Suppressing native compilation (short and long term),
Eli Zaretskii <=
- Re: Suppressing native compilation (short and long term), Po Lu, 2022/10/06
- Re: Suppressing native compilation (short and long term), Eli Zaretskii, 2022/10/06
- Re: Suppressing native compilation (short and long term), Andrea Corallo, 2022/10/06
- Re: Suppressing native compilation (short and long term), Eli Zaretskii, 2022/10/06
- Re: Suppressing native compilation (short and long term), Sean Whitton, 2022/10/04
Re: Suppressing native compilation (short and long term), tomas, 2022/10/02