> What shall I check exactly here? I ran this white() and yes, it
> finishes in 1-2 seconds. However I also ran (M-:)
> (whitespace-buffer-search whitespace-ateol-regexp) and it also took
> 1-2 seconds on my problematic original source file (it has only one
> eol "error").
> However with my slowtst.el I found the same difference what you wrote:
> white() finishes in 1-2 seconds, while M-: (whitespace-buffer-search
> whitespace-ateol-regexp) needs ~15-20 seconds to finish.

Since I don't know your "problematic original source file" I can only
refer to slowtst.el.

> So it seems this change could help a lot, but some other similar
> changes would be needed also. (I will check your newer patch also.

The change I wrote might speed things up by a factor of two or so.  But
installing overlays all over a buffer to indicate whitespace is pure
overkill.  After the release we could simplify this to highlight
whitespace in displayed buffer portions only and use text properties
instead of overlays.

> However, I have never patched source files this way. If you can send
> the whole modified whitespace.el it might help me.)

I'll send you my latest copy separately.



_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to