Thread (13 messages) flat view 13 messages, 4 authors, 1d ago

Re: [PATCH 1/2] t4205: compare huge output without diff

From: Junio C Hamano <hidden>
Date: 2026-09-25 06:41:59

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help