summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-01-20 18:19:39 +0000
committerschwarze <schwarze@openbsd.org>2015-01-20 18:19:39 +0000
commitc3111de599d926c99918c3939d6ae1008b4f5bb8 (patch)
treedb9795b2d8161e1e165d318507e039190f817572 /usr.bin/netstat/unix.c
parentFSHIFT does not need to go to userland, so convert it to _FSHIFT. (diff)
downloadwireguard-openbsd-c3111de599d926c99918c3939d6ae1008b4f5bb8.tar.xz
wireguard-openbsd-c3111de599d926c99918c3939d6ae1008b4f5bb8.zip
Make the man(1) and apropos(1) options -s and -S much less expensive:
Do not append an SQL clause looking into the large "keys" table. Instead, filter the result of the SQL query in buildnames() where equivalent data from the much smaller "mlinks" table is already available for free. This is relevant because man(1) uses the equivalent of "-S ${MACHINE}" by default since main.c rev. 1.122, to make sure that manuals for the current architecture are shown. With many ports installed, this patch can speed up man(1) by a factor of more than a hundred. Slowness reported by Theo Buehler <theo at math dot ethz dot ch>, thanks!
Diffstat (limited to 'usr.bin/netstat/unix.c')
0 files changed, 0 insertions, 0 deletions