diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-09 21:50:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-09 21:50:08 +0000 |
commit | fd8475f993a8cff7151b0ad852febee4632f4d57 (patch) | |
tree | 4ee6e0e4f23103f34fc39efd7e79e1a3463ffe9b /mansearch_const.c | |
parent | 54ecda87da2932c7457339c66a54bb18190a7306 (diff) | |
download | mandoc-fd8475f993a8cff7151b0ad852febee4632f4d57.tar.gz mandoc-fd8475f993a8cff7151b0ad852febee4632f4d57.tar.zst mandoc-fd8475f993a8cff7151b0ad852febee4632f4d57.zip |
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.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mansearch_const.c b/mansearch_const.c index 12d10b2a..95b69acf 100644 --- a/mansearch_const.c +++ b/mansearch_const.c @@ -1,4 +1,4 @@ -/* $Id: mansearch_const.c,v 1.2 2014/04/04 15:55:19 schwarze Exp $ */ +/* $Id: mansearch_const.c,v 1.3 2014/04/09 21:50:08 schwarze Exp $ */ /* * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> * @@ -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" }; |