unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: jan.h.d@swipnet.se, emacs-devel@gnu.org, miles@gnu.org
Subject: Re: Blink cursor changes, possible W32 breakage.
Date: Sun, 21 Jul 2013 22:46:31 -0400	[thread overview]
Message-ID: <jwvy58z48qa.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83eharyl65.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 21 Jul 2013 18:42:10 +0300")

>> >> No, indeed, but they're not activated unless the user asks for
>> >> it explicitly.
>> > I don't see how this is relevant.
>> It's relevant because most optional features are turned off.
> Don't we care about optional features anymore, if, when turned on,
> they cause trouble?

jit-lock-stealth is a performance tradeoff, burning more CPU cycles in
the hope of sometimes providing better interactive behavior.

So "keeping Emacs running when it's apparently idle" is not "trouble".

> Don't we want users to be able to turn those optional features on
> without suffering adverse consequences that we can prevent?

I don't think we can prevent them for jit-lock-stealth.
We could try and detect when there's nothing more to font-lock and
disable the timer at that point.  But it's very far form the top of the
priority.

>> > Are we going to tell users not to enable features if they want Emacs
>> > to be friendly to the batteries?  That's not going to happen.
>> jit-lock-stealth is pretty clearly battery unfriendly.  It's in its nature.
> Any program, when it works and burns CPU cycles, is battery
> unfriendly.

jit-lock-stealth does "eager fontification", which implies doing
unnecessary work.  It's a form of speculation.  So it's not just like
"any program".

> The issue we are discussing here is whether it would be a
> good idea to turn such features off under some conditions.

Well, we already turn it off in all circumstances except those where the
user explicitly requests to turn it on, so I thiunk we cover the 99% of
the needs in this area.

>> Yes, we did try to make jit-lock-stealth work acceptably, but after many
>> attempts, we chose to turn it off instead because there's always some
>> situation where it consumes a lot more CPU than what you'd want.
> Not here, it doesn't.

You're just lucky not to hit the problematic cases.


        Stefan



  reply	other threads:[~2013-07-22  2:46 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 11:48 Blink cursor changes, possible W32 breakage Jan Djärv
2013-07-16 15:55 ` Glenn Morris
2013-07-16 16:15   ` Jan Djärv
2013-07-16 18:29   ` covici
2013-07-16 18:49     ` Eli Zaretskii
2013-07-16 20:19       ` covici
2013-07-16 17:00 ` Juanma Barranquero
2013-07-16 17:39 ` Eli Zaretskii
2013-07-16 18:02   ` Lars Magne Ingebrigtsen
2013-07-16 18:30     ` Eli Zaretskii
2013-07-16 22:05       ` Stefan Monnier
2013-07-16 21:12   ` Jan Djärv
2013-07-16 21:23     ` Lars Magne Ingebrigtsen
2013-07-16 22:04       ` Óscar Fuentes
2013-07-17  1:58       ` Miles Bader
2013-07-17  7:42       ` Jan Djärv
2013-07-17 14:58         ` Eli Zaretskii
2013-07-17 15:02         ` Lars Magne Ingebrigtsen
2013-07-17  8:38       ` Stefan Monnier
2013-07-17  4:04     ` Eli Zaretskii
2013-07-17  4:56       ` Miles Bader
2013-07-17  7:38         ` Jan Djärv
2013-07-17 14:56           ` Eli Zaretskii
2013-07-17 16:29             ` Jan Djärv
2013-07-17 17:05               ` Eli Zaretskii
2013-07-17 18:53                 ` Jan Djärv
2013-07-17 19:23                   ` Eli Zaretskii
2013-07-17 19:38                     ` Jan Djärv
2013-07-19  2:12                     ` Miles Bader
2013-07-19  6:39                       ` Eli Zaretskii
2013-07-19  9:33                         ` Stefan Monnier
2013-07-19 10:07                           ` Eli Zaretskii
2013-07-19 10:50                             ` Óscar Fuentes
2013-07-19 11:13                               ` Eli Zaretskii
2013-07-19 12:02                                 ` Óscar Fuentes
2013-07-19 13:43                                   ` Eli Zaretskii
2013-07-19 17:52                                     ` Thien-Thi Nguyen
2013-07-20  8:18                                     ` Stefan Monnier
2013-07-20  9:25                                       ` Eli Zaretskii
2013-07-20 22:42                                         ` Stefan Monnier
2013-07-21  2:45                                           ` Eli Zaretskii
2013-07-21  7:46                                             ` Stefan Monnier
2013-07-21 15:43                                               ` Eli Zaretskii
2013-07-22  2:47                                                 ` Stefan Monnier
2013-07-19 10:54                             ` Lars Magne Ingebrigtsen
2013-07-19  9:32                       ` Stefan Monnier
2013-07-19 10:08                         ` Eli Zaretskii
2013-07-20  8:16                           ` Stefan Monnier
2013-07-20  9:26                             ` Eli Zaretskii
2013-07-20 22:40                               ` Stefan Monnier
2013-07-21  2:44                                 ` Eli Zaretskii
2013-07-21  7:45                                   ` Stefan Monnier
2013-07-21 15:42                                     ` Eli Zaretskii
2013-07-22  2:46                                       ` Stefan Monnier [this message]
2013-07-21  9:20                                 ` martin rudalics
2013-07-22  2:55                                   ` Stefan Monnier

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvy58z48qa.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=miles@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.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).