emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master c66aaa6: Recomplexify ‘delete-trailing-whitespa


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master c66aaa6: Recomplexify ‘delete-trailing-whitespace’ by treating \n as whitespace again
Date: Wed, 15 Mar 2017 23:08:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>> I don't understand how "\\s-+$" can be significantly faster than
>> "[\s\t]+$" in this respect.
> What?  I though I said "\\s-+" is *slower* (though only by a factor of 2).

The bug#26079 seems to indicate that the old Emacs-25 code was a lot faster.

Oh, I see.  It's that the old code used "\\s-$" rather than "\\s-+$".
Yes, that old code does avoid the quadratic effect this way.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]