-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Incorporated faster line count #11
Conversation
See newlinebench for more information. |
I am so looking forward to see this PR land, just because line counts are enabled by default and are something people do expect to see anyway. Looking at the benchmarks on @BurntSushi 's blog, being faster at this will be absolutely noticeable ! |
It will likely only be noticeable when searching very large files. But yes, I believe @llogiq is working on putting this in a crate since there have been other developments. I would also like to understand the algorithm and audit it for safety before merging, so it might be a bit. Hang tight. |
Sounds very reasonable ! I will happily use the fastest and best 'out-of-the' best experience then, to soon be able to tout it just became a little bit faster :). |
Yeah, I want to strip down the use of Of course you can pull this now (as it'll already be faster), and I'll push a new PR when it's ready. |
@@ -1,33 +1,26 @@ | |||
[package] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why you rewrote my Cargo.toml? Could you please not do that? (There are several stylistic choices that I don't like.)
@BurntSushi I've got a new version that should be easier to audit. The basic idea is that the function |
I have a somewhat thorough explanation on my blog. |
Any updates on this? |
No. On Oct 9, 2016 5:25 PM, "llogiq" notifications@github.com wrote:
|
FWIW, a newer version has SIMD support, which is a lot faster. |
This did wind up with quite a nice speed up! Comparing old master ( First, a base line with no line counting:
And now with line counting:
Twice as fast! |
Cool! |
Thanks for the hint; here's the faster linecount for your ripgrep utility.