diff options
| author | Mattias EngdegÄrd | 2023-10-14 11:42:44 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-10-14 12:15:33 +0200 |
| commit | fbbe40cf50ecd9f4ce5f2ff684190d8ed37f2aa9 (patch) | |
| tree | b2a1db4a7216c07f728dbad665c3f05787c7963d /java/org/gnu | |
| parent | 548bc3e3d18ea6776032ca83dafbc89e3ddb5a5a (diff) | |
| download | emacs-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/org/gnu')
0 files changed, 0 insertions, 0 deletions