uniq(1): skip() each input line only once
authorcheloha <cheloha@openbsd.org>
Fri, 24 Dec 2021 17:59:28 +0000 (17:59 +0000)
committercheloha <cheloha@openbsd.org>
Fri, 24 Dec 2021 17:59:28 +0000 (17:59 +0000)
commitd6dce0799c82bace61d4ce35ace8de5b2aa3da7b
tree584b12a69036dfcfcdab1c3ab24138313e6fd134
parente203695f7aaa58e0ffddd140380eb0ae670df79d
uniq(1): skip() each input line only once

In uniq(1), skip() is very expensive.  We should only do it once per
input line.  Doing it more than once is redundant, anyway.

Thread: https://marc.info/?l=openbsd-tech&m=163950278018535&w=2

ok millert@
usr.bin/uniq/uniq.c