Skip to content

Is ORing in a regular expression the fastest way to search in this scenario? #2808

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

You must be logged in to vote

I think it's likely you'll be bottlenecked on gzip decompression. Especially if you're searching the same files multiple times, you might experiment with searching uncompressed files or even files using a different compression algorithm. There may also be much faster gzip decompression implementations than whatever your default gzip -d does (which is what ripgrep will use to do decompression).

Beyond that, yeah I don't see any other improvement.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jftuga
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