Skip to content

What algorithms are used in ripgrep ? #2225

Answered by BurntSushi
sofeepokhrel asked this question in Q&A
Discussion options

You must be logged in to vote

“When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.”

The problem is, you haven't scrutinized the assumptions you're making. For example, ripgrep is written in Rust and Rust is not a dynamic language. In fact, any cursory research on Rust should lead you to the quick conclusion that one of its design goals is to be as fast as C. Rust borrows the "zero cost abstractions" design philosophy that C++ has.

Would you please give me knowledge to it?

When I first released ripgrep, I wrote a blog post introducing it with benchmarks and a fairly detailed analysis. The blog post is linked in the README. Please read that first. If you stil…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by sofeepokhrel
Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants