summaryrefslogtreecommitdiffstats
path: root/tbl.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
commitd1726e70d7ff0b7293fb97bf3e0ed2b37cbab2ce (patch)
tree041e38837c5b93a2ef501db6b94cb4699014426b /tbl.7
parentf118bfae6ef1e4ffdb25aff50ea427616253f6ca (diff)
downloadmandoc-d1726e70d7ff0b7293fb97bf3e0ed2b37cbab2ce.tar.gz
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 'tbl.7')
0 files changed, 0 insertions, 0 deletions