3 ms·
It's odd that TFA has this focus on performance but doesn't mention which awk implementation has been used; at least I haven't found any mention of it. There ar
by tannhaeuser 6y ago
It's odd that TFA has this focus on performance but doesn't mention which awk implementation has been used; at least I haven't found any mention of it. There are 3-4 implementations in mainstream use: nawk (the one true awk, an ancient version of which is installed on Mac OS by default), mawk (installed on eg. Ubuntu by default), gawk (on RH by default last I checked), or busybox-awk. Tip: mawk is much faster than the others and to get performance out of gawk you should use LANG=C (and also because of crashes with complex regexpes in Unicode locales in some versions of gawk 3 and 4).
- ketanmaheshwari 6y agoThank you for your comment. I should have clarified that I use gawk version 4.0.2. I mean to update the post but somehow am unable to push to repo or login to my github. Edit: Done.
- tannhaeuser 6y agoYeah just read in another answer of yours that for your scripts probably regexp performance dominates the results as there's not much procedural code to make a difference.
- mfontani 6y agoThey seem to be currently having a few problems with log-in: https://www.githubstatus.com/incidents/q3cfsrp1qb6l https://www.githubstatus.com/incidents/q3cfsrp1qb6l