all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: 33% speed up in CC Mode scrolling.
Date: Fri, 17 Jun 2016 15:38:11 +0000	[thread overview]
Message-ID: <20160617153811.GC3316@acm.fritz.box> (raw)
In-Reply-To: <E1bDgVk-0002FU-6A@fencepost.gnu.org>

Hello, Richard.

On Thu, Jun 16, 2016 at 07:15:44PM -0400, Richard Stallman wrote:
> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]

> I have found CC mode font lock such a nuisance that I sometimes
> turn it off.

> It is a good thing to have sped it up, but it might still be far too
> slow.  Perhaps we should go back to an older version that is fast enough
> even if it is more often wrong.

Or, why not just set `font-lock-maximum-decoration' to 2?  This runs at
~2½ times the speed of the default fontification (measured by scrolling
all the way through .../src/xdisp.c), and is barely slower than
`font-lock-maximum-decoration' being set to 1 (which merely fontifies
comments and strings).

Fair warning: setting `f-l-m-d', and making the setting work, is
difficult (see bug #23783).  One way is to do

    M-: (font-lock-refresh-defaults)

in a buffer after changing `f-l-m-d'.

> -- 
> Dr Richard Stallman
> President, Free Software Foundation (gnu.org, fsf.org)
> Internet Hall-of-Famer (internethalloffame.org)
> Skype: No way! See stallman.org/skype.html.

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2016-06-17 15:38 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15 22:20 33% speed up in CC Mode scrolling Alan Mackenzie
2016-06-16  0:41 ` John Wiegley
2016-06-16  1:02 ` Clément Pit--Claudel
2016-06-16 23:15   ` Richard Stallman
2016-06-17 15:38     ` Alan Mackenzie [this message]
2016-06-19 17:21       ` Richard Stallman
2016-06-20  0:44         ` Stefan Monnier
2016-06-20 23:04           ` Richard Stallman
2016-06-21  0:47             ` Stefan Monnier
2016-06-22  6:34               ` Richard Stallman
2016-06-27  6:31 ` martin rudalics
2016-06-27 12:49   ` Alan Mackenzie
2016-06-27 16:10     ` martin rudalics
2016-06-27 17:28       ` martin rudalics
2016-06-27 18:44         ` Alan Mackenzie
2016-06-28  8:23           ` martin rudalics
2016-06-28 10:27             ` Alan Mackenzie
2016-06-27 16:28   ` Eli Zaretskii
2016-06-27 16:57     ` martin rudalics
2016-06-27 19:31       ` Eli Zaretskii
2016-06-28  8:23         ` martin rudalics
2016-06-28  9:18           ` Alan Mackenzie
2016-06-28 13:03             ` bug#23861: 25.1.50; fast-but-imprecise-scrolling: What does "somewhat inaccurate" mean? Phil Sainty
2016-06-28 16:14               ` Eli Zaretskii
2019-10-14 12:35               ` Stefan Kangas

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

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

  git send-email \
    --in-reply-to=20160617153811.GC3316@acm.fritz.box \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.