stefankueng / grepWin

A powerful and fast search tool using regular expressions
https://tools.stefankueng.com/grepWin.html
GNU General Public License v3.0
1.74k stars 180 forks source link

Using ripgrep as underlying text searching lib #340

Closed codec-abc closed 1 year ago

codec-abc commented 1 year ago

Hi,

I am a long time user of grepWin that I like very much. I use it daily to parse find GUID in a bunch of yaml files (because doing Unity 3D stuff). The things is that as my Unity projects grow the search take longer. Of course it is expected but I think performance can be better. Searching the same string with grepWin and ripGrep with the same file pattern give me roughly an order of magnitude faster results for ripGrep over GrepWin. So I guess using ripGrep as an underlying library could improve performance quite a lot.

stefankueng commented 1 year ago

ripGrep is faster only because it omits a lot of what regex can do.

for the first item, you can uncheck "dot matches newline", which makes grepWin also a little bit faster, but it still searches documents, not lines. as for the second, well, grepWin is a regex search tool, not some "only some regex" search tool.