minor speedup

This commit is contained in:
2024-12-11 23:30:07 +08:00
parent 9e60df1c2e
commit 792d86423f

View File

@ -98,7 +98,7 @@ do
fi
done < temp-input |
tee temp-output |
sort -n |
sort -n -k2 |
uniq -c |
awk '{sums[$3] += $1 * $2 } END {for (i in sums) {print sums[i], i}}' |
sponge temp-input