bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#24012: 25.0.95; forward-comment backwards takes O(n^2)


From: Dmitry Gutov
Subject: bug#24012: 25.0.95; forward-comment backwards takes O(n^2)
Date: Mon, 25 Dec 2017 17:24:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0

On 7/17/16 2:04 PM, Leo Liu wrote:

1. Use the attached file as an example, open it in emacs in ruby-mode
2. Move point to end of buffer and eval (forward-comment (- (point)))

The last step takes about 0.25 seconds on my MacBook 3 GHz Intel Core
i7. If you double the lines of comments, the time increase by 4 folds.

FWIW, it looks fixed in the master branch now.

Probably by 14b95587520959c5b54356547a0a69932a9bb480, so no idea what exactly was causing it.





reply via email to

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