summaryrefslogtreecommitdiffstats
path: root/contrib/patch/version.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-04-30 18:17:51 +0000
committerkientzle <kientzle@FreeBSD.org>2004-04-30 18:17:51 +0000
commit5aa078d988a3268f00120c1b3bbdbdab9ddc6b2f (patch)
tree032e33c8daae2f2ab11522f62c513645bd21fb04 /contrib/patch/version.c
parentf251d164a58a27d078136fb7693a8a19b6a79c39 (diff)
downloadFreeBSD-src-5aa078d988a3268f00120c1b3bbdbdab9ddc6b2f.zip
FreeBSD-src-5aa078d988a3268f00120c1b3bbdbdab9ddc6b2f.tar.gz
Speed up hardlink detection by using a self-sizing hash
table rather than the old linear list search. On my "hardlink detection torture test", this reduced user time from 4700 seconds down to 4.2 seconds and wallclock time from 1:24:48 down to 1:08. (Yes, that's over one THOUSAND times reduction in user time. ;-) In the worst case, the new code doubles peak memory usage, though it could actually reduce memory usage in many cases. MFC after: 1 week PR: misc/42167, bin/51151
Diffstat (limited to 'contrib/patch/version.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud