aboutsummaryrefslogtreecommitdiffstats
path: root/java/debug.sh
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-10-14 11:42:44 +0200
committerMattias EngdegÄrd2023-10-14 12:15:33 +0200
commitfbbe40cf50ecd9f4ce5f2ff684190d8ed37f2aa9 (patch)
treeb2a1db4a7216c07f728dbad665c3f05787c7963d /java/debug.sh
parent548bc3e3d18ea6776032ca83dafbc89e3ddb5a5a (diff)
downloademacs-fbbe40cf50ecd9f4ce5f2ff684190d8ed37f2aa9.tar.gz
emacs-fbbe40cf50ecd9f4ce5f2ff684190d8ed37f2aa9.zip
Make the docstrings-wide check 70x faster
Instead of performing a number of expensive transformations on the original doc string and then use a dynamically-created regexp to find wide lines, step through the lines in the unmodified string and only perform the transformations on lines that exceed the limit. This is sound because the transformations are contractive. The new check will usually not cons nor perform any regexp matching. * lisp/emacs-lisp/bytecomp.el (bytecomp--docstring-line-width): New. (byte-compile--wide-docstring-p): Cheaper implementation.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions