From: Lady Date: Sat, 3 Feb 2024 23:25:56 +0000 (-0500) Subject: Just manually parse hexadecimal in Awk X-Git-Tag: 0.5.2^0 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/cd1e51dfa7c2883a9dccaee37dda45ce17223186?ds=sidebyside;hp=cd1e51dfa7c2883a9dccaee37dda45ce17223186 Just manually parse hexadecimal in Awk The biggest performance bottleneck in this code was the fact that, for compatibility reasons, Awk was piping hexadecimal numbers to the shell in order to parse them. (Macintosh Awk can parse hexadecimal numbers in `printf`, but G·N·U Awk cannot.) Because the hexadecimal number is known to be two digits, it’s easy to just parse it in Awk directly, avoiding the shell pipe and considerably speeding up the program. ---