GNU bug report logs - #44564
27.1; C-n in macros causes long delays

Previous Next

Package: emacs;

Reported by: Ted Lavarias <ted.lavarias <at> gmail.com>

Date: Wed, 11 Nov 2020 01:06:02 UTC

Severity: normal

Found in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 44564 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 44564 <at> debbugs.gnu.org, ted.lavarias <at> gmail.com
Subject: Re: bug#44564: 27.1; C-n in macros causes long delays
Date: Wed, 03 Feb 2021 20:19:24 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Wed, 03 Feb 2021 18:58:47 +0100
> Cc: 44564 <at> debbugs.gnu.org
> 
> > (benchmark-run 100 (next-line)) ===> (0.28576279800000004 1
> > 0.025205666000000013)
> > (benchmark-run 100 (forward-line)) ===> (0.00010560799999999998 0 0.0)
> >
> > That's quite a significant difference between next-line and forward-line!
> 
> Yup; `next-line' is a surprisingly complex function.

Only when line-move-visual is non-nil.  If the OP's application
doesn't need that, the function will run much faster if
line-move-visual is bound to nil.




This bug report was last modified 4 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.