![]() When shopping for a tool I benchmark my options against my own needs because they are the only relevant things to account for. Whether it is small or large doesn't matter in the slightest. Performance isn't the only advantage of ripgrep.įor my actual usage, performance is not a problem, not even with Grep, so your tool doesn't even have that edge over preexisting ones.Īnd to be clear, benchmarks at that time imply you're probably searching a pretty small amount of data. As for Unicode/UTF-16/weird performance cliffs… I will shop around the day I start caring about those, and people should, too. But I happen to only care about bugs that bite me, which I still have to come across after several years of ag usage, and features I actually need. If I cared about bugs in an absolute way, I wouldn't use any software-not even yours-because everything is crap. Maybe I should have written "are satisfied with" instead of "already have"? But if you are only used to grep, then both ag and rg are valuable upgrades. My opinion is that, if you already have ag, then switching to rg doesn't make practical sense. RipGrep would give me a similar feature set but there's not much noticeable performance difference and I prefer The Silver Searcher's syntax for narrowing down filetypes so I think I will stick with ag. it lets me narrow down search to filetype families pretty easily.it ignores a lot of things by default (one can make a grep alias with lots of exclusions, too),. ![]() it doesn't need a path ("BSD" grep needs one but "GNU" grep doesn't),. ![]() That said, I use The Silver Searcher over the "BSD" grep that comes by default on MacOS for three reasons: I wouldn't consider such a small difference particularly significative, though. Because of that, grep generally defaults to a very simple and efficient routine that's pretty much comparable with ag (I don't have RipGrep on this machine) in terms of performance: $ cd. Personally, I mostly search for fixed strings. From my experience, RipGrep and The Silver Searcher are in the same ballpark and any performance difference will only be noticed in marginal, very specific, cases. Judging by the benchmarks only, RipGrep is slightly faster than The Silver Searcher, which is faster than Ack, which is faster than grep. And please those of you who deign to grace us with your vim wisdom - be kind.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |