summaryrefslogtreecommitdiffstats
path: root/mansearch_const.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-04-09 21:50:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-04-09 21:50:08 +0000
commit31583f54660e373832d0fc36eaa2005e7e836229 (patch)
tree2072a99b38e5cf05716e1f1095798bb83e42d033 /mansearch_const.c
parentb89bb1378a92c68b93b6d3450cbda691e289d6c6 (diff)
downloadmandoc-31583f54660e373832d0fc36eaa2005e7e836229.tar.gz
After careful gprof(1)ing of the new apropos(1), move the descriptions
back from the keys table to the mpages table: I found a good way to still use them in searches, without complication of the code. On my notebook, this reduces typical apropos(1) search times by about 40%, it reduces /usr/share/man database size by 6% in makewhatis(8) -Q mode and by 2% in standard mode (less overhead storing pointers to mpages), and it doesn't measurably change database build times (may even be going down by a percent or so because less data is being copied around in ohashes).
Diffstat (limited to 'mansearch_const.c')
-rw-r--r--mansearch_const.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mansearch_const.c b/mansearch_const.c
index 8e4232c1..cfa9b6c3 100644
--- a/mansearch_const.c
+++ b/mansearch_const.c
@@ -23,10 +23,10 @@
const int mansearch_keymax = 41;
const char *const mansearch_keynames[41] = {
- "NAME", "Nm", "Nd", "arch", "sec", "Xr", "Ar", "Fa",
- "Fl", "Dv", "Fn", "Ic", "Pa", "Cm", "Li", "Em",
- "Cd", "Va", "Ft", "Tn", "Er", "Ev", "Sy", "Sh",
- "In", "Ss", "Ox", "An", "Mt", "St", "Bx", "At",
- "Nx", "Fx", "Lk", "Ms", "Bsx", "Dx", "Rs", "Vt",
- "Lb"
+ "NAME", "Nm", "arch", "sec", "Xr", "Ar", "Fa", "Fl",
+ "Dv", "Fn", "Ic", "Pa", "Cm", "Li", "Em", "Cd",
+ "Va", "Ft", "Tn", "Er", "Ev", "Sy", "Sh", "In",
+ "Ss", "Ox", "An", "Mt", "St", "Bx", "At", "Nx",
+ "Fx", "Lk", "Ms", "Bsx", "Dx", "Rs", "Vt", "Lb",
+ "Nd"
};