From fd8475f993a8cff7151b0ad852febee4632f4d57 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 9 Apr 2014 21:50:08 +0000 Subject: 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). --- mansearch_const.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mansearch_const.c') 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 * @@ -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" }; -- cgit v1.2.3