aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-20 18:21:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-20 18:21:18 +0000
commit8ef90a48648b29592a42458138e7d1631e142f1c (patch)
tree028e1daf932983d26e96ba6a34fcccb715303d76 /mdoc.7
parent668d4d545d8d492db11e35f07ea7744ff322935a (diff)
downloadmandoc-8ef90a48648b29592a42458138e7d1631e142f1c.tar.gz
mandoc-8ef90a48648b29592a42458138e7d1631e142f1c.tar.zst
mandoc-8ef90a48648b29592a42458138e7d1631e142f1c.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.216, 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 'mdoc.7')
0 files changed, 0 insertions, 0 deletions