3 ms·
> Brag that you called Perl from Python because it was "quicker" to experienced Python programmers. A coworker found that calling out to grep can be faster tha
by alec 17y ago
> Brag that you called Perl from Python because it was "quicker" to experienced Python programmers.
A coworker found that calling out to grep can be faster than using Python's regular expressions for large amounts of text processing. My first reaction was to cringe, but it was indeed much faster for this particular problem; I think I was the bad programmer for reflexively cringing instead of saying "nice performance hack".
- ubernostrum 17y agoThere are times and cases where a Perl script is faster than grep. It's ridiculously heavily optimized for that particular task.
- deleted 17y ago[deleted]