CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2014/04/09 20:45:04
Modified files: usr.bin/mandoc : mandocdb.c mansearch.c mansearch.h mansearch_const.c Log message: Next speed optimization step for the new apropos(1). Split manual names out of the common "keys" table into their own "names" table. This reduces standard apropos(1) search times (i.e. searching for names and descriptions only) by typically about 70% for the full /usr/share/man database. (Yes, that multiplies with the previous optimization step, so both together have reduced search times by a factor of more than six. I'm not done yet, expect more to come.) Even with the minimal databases built with makewhatis(8) -Q, this step still reduces search times by 15-20%. For both cases, database sizes and build times hardly change (+/-2%).