summaryrefslogtreecommitdiff
path: root/lib/libc/gen/wait3.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-01-20 18:19:40 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-01-20 18:19:40 +0000
commit3bbc909a117af1c26d31a6befe8836ded85d3f38 (patch)
treee03f08a1e6563b97c51416f741db6e2f8910cc2e /lib/libc/gen/wait3.c
parent17eb5cfffcd5c0af8ad56892e2175a4d8d45efc9 (diff)
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 'lib/libc/gen/wait3.c')
0 files changed, 0 insertions, 0 deletions