-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Searching in a long line can be slow #370
Comments
Fixed in 236e041. |
This is still slow for me, but it was never 160 seconds. Performance is the same between versions (on a MBP 2016): less 643: $ less --version | head -n1
less 643 (POSIX regular expressions)
$ seq 30000 | tr '\n' ' ' | time less +/29999 +q
10.80 real 7.49 user 0.12 sys less 651x: $ ./less --version | head -n1
less 651x (POSIX regular expressions)
$ seq 30000 | tr '\n' ' ' | time ./less +/29999 +q
9.25 real 6.21 user 0.07 sys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Searching for text near the end of a very long line can be unreasonably slow. For example, run
This produces a file containing one line which is 168,894 chars long. Type
/29999
to search for a string near the end of the line. On a fairly fast desktop system this takes 160 seconds to complete.The text was updated successfully, but these errors were encountered: