Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/uniq



Module Name:    src
Committed By:   abhinav
Date:           Fri Oct 14 19:43:59 UTC 2016

Modified Files:
        src/usr.bin/uniq: uniq.c

Log Message:
A small optimization: since we already know the length of the lines, check
if the lenghts are equal before calling strcmp(3). Most of the times, the call
to strcmp(3) can be saved if the lines are not of the same length.

Thanks to Christos for the reviews


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/uniq/uniq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index