4 ms·
Have used Mawk [1] in similar cases for a runtime savings, provided that the script works without any GNU Awk extensions. [1] https://invisible-island.net/mawk
by bsg75 7y ago
Have used Mawk [1] in similar cases for a runtime savings, provided that the script works without any GNU Awk extensions.
[1] https://invisible-island.net/mawk/ https://invisible-island.net/mawk/
- mzs 7y agoThank you! For those that don't know, 15 years ago GNU awk was sometimes oddly REALLY slow. Mike's awk was not. Plus when things were overall slower back then, it mattered more. But there were bugs in mawk and it seemed basically unmaintained. So you'd run into something and have to use gawk or perl instead. That's no longer the case, the xterm guy adopted it, ten years ago, and now I know!
- bsg75 7y agoLast release was late 2017, but it has been very stable for me. Plus the author responds to bug reports. Mawk is my go-to version because of speed. GNU Awk when its extensions are needed, or the task is over "small data" and the system default version is sufficient.
- IndustrialJane 7y agoI always wondered why Mawk did not implement Gawk's extensions - or at least those that could be done without any major penalty for the rest of the code. Do you know why?