freebsd-nq/usr.bin
Tim Kientzle 231a973125 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
2004-04-30 18:17:51 +00:00
..
alias
apply
asa
at
atm
awk
banner
basename
biff
bluetooth Use uint instead of u_int 2004-04-09 23:26:16 +00:00
brandelf
bzip2
bzip2recover
c89
c99 Update URL of GCC status page to GCC 3.3 2004-03-04 20:29:27 +00:00
calendar Add my birthday. 2004-04-18 01:05:55 +00:00
cap_mkdb
catman
chat
checknr
chkey
chpass Typo fix. 2004-03-03 09:15:07 +00:00
cksum
cmp
col
colcrt
colldef
colrm
column
comm
compile_et
compress
csplit Use fseeko() to properly support large files. 2004-03-22 11:15:03 +00:00
ctags
cut
dig
dirname
dnskeygen
dnsquery
du Speed up hardlink detection by using a self-sizing hash 2004-04-30 18:17:51 +00:00
ee
elf2aout
elfdump Elf_Phdr.p_type 7 is "PT_TLS". 2004-03-02 14:06:27 +00:00
enigma
env Fix grammar bogon. 2004-02-29 12:52:21 +00:00
expand
false
fetch Workaround for servers that ignore byte ranges when using chunked 2004-04-06 12:24:26 +00:00
file
file2c
find Clarify and correct some compatibility notes. 2004-04-21 00:42:55 +00:00
finger Add multiple inclusion guards. Mostly this is for extern.h, which was 2004-03-14 06:43:34 +00:00
fmt
fold
from
fstat Correct the description of the -N option. 2004-03-26 10:48:35 +00:00
fsync
ftp
gcore
gencat
getconf
getopt
gprof
head
hesinfo
hexdump
host
id
indent Support C-style comments in profile. 2004-03-21 04:47:54 +00:00
ipcrm
ipcs Add -u option to ipcs(1) and document it in ipcs.1 2004-03-24 04:01:43 +00:00
join
jot
kdump Respect decimal flag when dumping USER type records. 2004-03-25 12:33:55 +00:00
keylogin
keylogout
killall Add a cross-reference to pkill(1), now that pkill is hooked up to the build. 2004-03-27 23:45:33 +00:00
ktrace
ktrdump
lam
last
lastcomm
ldd
leave
less Restore old value of LESSKEYFILE_SYS. 2004-04-17 07:48:21 +00:00
lessecho
lesskey
lex Replace <iostream.h> with <iostream> to remove annoying warning 2004-03-11 10:43:35 +00:00
limits
locale
locate
lock
lockf
logger
login Fixed style bugs in previous commit (.ifndef instead of .if defined(), 2004-02-29 06:39:11 +00:00
logins Fix markup. 2004-03-06 23:36:41 +00:00
logname
look
lorder
lsvfs
m4
mail These aren't all binary options. 2004-03-09 01:20:24 +00:00
make Treat kevent(2) returning an error EINTR as the non-error it is. 2004-04-20 22:04:12 +00:00
makewhatis
mesg
minigzip
ministat
mkdep
mkfifo
mklocale
mkstr Fixed a misspelling of 0 as NULL. 2004-03-14 05:51:20 +00:00
mktemp
msgs Fixed misspellings of '\0' as NULL. 2004-03-11 10:12:05 +00:00
mt Backout previous commit. It seems this comment applied to something 2004-04-09 17:30:26 +00:00
ncal
ncplist
ncplogin
netstat Add the bad reset statistic (corresponds to tcp_input.c rev 1.235) 2004-04-26 02:57:33 +00:00
newgrp
newkey
nfsstat
nice
nl
nohup
objformat
opieinfo
opiekey
opiepasswd
pagesize
passwd
paste
pathchk
pkill Use KERN_PROC_PROC instead of KERN_PROC_ALL on the call to kvm_getprocs(), 2004-03-30 15:10:50 +00:00
pr
printenv
printf Make it possible for the %[eEfgG] formats to not result in an error 2004-03-07 22:22:13 +00:00
quota
renice
rev
rlogin
rpcgen
rpcinfo Fixed a misspelling of '\0' as NULL. 2004-03-11 10:22:25 +00:00
rs
rsh
rup
ruptime
rusers
rwall
rwho
script
sed
shar
showmount
smbutil
sockstat
split
stat
su Add FBSDID. Do not dot terminate errx(3) string. 2004-04-04 18:56:53 +00:00
systat Include <sys/proc.h> for the definition of PS_INMEM instead of 2004-04-14 09:01:56 +00:00
tabs
tail
talk Handle window resizing better. 2004-04-19 21:37:29 +00:00
tar -U is now implemented. (It's been recognized by bsdtar for a while; 2004-04-29 05:22:13 +00:00
tcopy
tee
telnet
tftp
time
tip Fixed misspellings of 0 as NULL. Fixed some nearby style bugs. 2004-03-14 05:55:16 +00:00
top
touch
tput
tr
true
truncate
truss Add support for decoding Timespec, Timeval, Itimerval, Pollfd, 2004-03-23 12:37:02 +00:00
tset
tsort
tty
uac
ul
uname
unexpand
unifdef
uniq
units
unvis
usbhidaction Misc fixes brought to light by WARNS=6: 2004-03-09 11:35:43 +00:00
usbhidctl
users
uudecode
uuencode
uuidgen
vacation
vgrind
vi
vis
vmstat Print fork statistics with %u as they are unsigned quantities. 2004-04-23 13:10:29 +00:00
w Include <sys/proc.h> instead of depending on namespace pollution in 2004-04-14 09:34:17 +00:00
wall
wc Improve robustness of multibyte character handling (-m option), and 2004-04-09 11:17:29 +00:00
what
whereis
which
who
whois
window Add FBSDID. Use %ld to printf(3) a long (even if the number is small). 2004-04-04 19:11:01 +00:00
write
xargs
xinstall Improved incorrect usage diagnostics. 2004-03-17 11:06:40 +00:00
xlint style.Makefile(5): 2004-02-23 20:25:27 +00:00
xstr
yacc Use getopt instead of hand-rolled argument parsing. Usage remains 2004-03-05 01:52:09 +00:00
yes
ypcat
ypmatch
ypwhich Be consistant while reporting error conditions. 2004-04-04 19:17:38 +00:00
Makefile Connect bsdtar to the build. 2004-04-06 17:04:38 +00:00
Makefile.inc