Jeff King [off-list ref] writes:
# first check quickly if there is any difference
cmp "$@" && return 0
# if not, then we can spend time to produce a useful output
diff "$@"
But I never pursued it because I figured most of the things we compare
are not big enough to matter (and really the comparison itself is
dwarfed by the process startup time).
Yup, that matches my intuition.
So I am happy just marking this particular case as cmp_bin, too.
Me too.
Thanks.