Re: [PATCH 1/2] t4205: compare huge output without diff
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> # 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.