It looks like we could speed it up even more
by producing this list
! (setq whitespace-retval (cons (match-beginning 0) whitespace-retval))
only if it is actually wanted. Calling from whitespace-buffer
could pass t as an optional argument saying do produce this list.
The overhead for maintaining
these overlays may grow non-linearly with respect to their number. Your
> 3. unzip and then visit the attached slowtst.el (I drag&dropped it)
has some 3500 lines which will produce approximately 7000 overlays.
Is that still true after the changes you sent?
In addition, `whitespace-buffer' may unconditionally trigger a non-idle
timer which may trigger further executions of `whitespace-buffer'. The
doc-string of the timer says:
"Timer object used to rescan the files in buffers that have been modified."
That's false, whitespace doesn't check whether a file is modified.
Can you fix that up too?
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug