summaryrefslogtreecommitdiffstats
path: root/mansearch.h
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.h
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.h')
-rw-r--r--mansearch.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/mansearch.h b/mansearch.h
index 8f5169a3..41149072 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -22,45 +22,45 @@
#define TYPE_NAME 0x0000000000000001ULL
#define TYPE_Nm 0x0000000000000002ULL
-#define TYPE_Nd 0x0000000000000004ULL
-#define TYPE_arch 0x0000000000000008ULL
-#define TYPE_sec 0x0000000000000010ULL
-#define TYPE_Xr 0x0000000000000020ULL
-#define TYPE_Ar 0x0000000000000040ULL
-#define TYPE_Fa 0x0000000000000080ULL
-#define TYPE_Fl 0x0000000000000100ULL
-#define TYPE_Dv 0x0000000000000200ULL
-#define TYPE_Fn 0x0000000000000400ULL
-#define TYPE_Ic 0x0000000000000800ULL
-#define TYPE_Pa 0x0000000000001000ULL
-#define TYPE_Cm 0x0000000000002000ULL
-#define TYPE_Li 0x0000000000004000ULL
-#define TYPE_Em 0x0000000000008000ULL
-#define TYPE_Cd 0x0000000000010000ULL
-#define TYPE_Va 0x0000000000020000ULL
-#define TYPE_Ft 0x0000000000040000ULL
-#define TYPE_Tn 0x0000000000080000ULL
-#define TYPE_Er 0x0000000000100000ULL
-#define TYPE_Ev 0x0000000000200000ULL
-#define TYPE_Sy 0x0000000000400000ULL
-#define TYPE_Sh 0x0000000000800000ULL
-#define TYPE_In 0x0000000001000000ULL
-#define TYPE_Ss 0x0000000002000000ULL
-#define TYPE_Ox 0x0000000004000000ULL
-#define TYPE_An 0x0000000008000000ULL
-#define TYPE_Mt 0x0000000010000000ULL
-#define TYPE_St 0x0000000020000000ULL
-#define TYPE_Bx 0x0000000040000000ULL
-#define TYPE_At 0x0000000080000000ULL
-#define TYPE_Nx 0x0000000100000000ULL
-#define TYPE_Fx 0x0000000200000000ULL
-#define TYPE_Lk 0x0000000400000000ULL
-#define TYPE_Ms 0x0000000800000000ULL
-#define TYPE_Bsx 0x0000001000000000ULL
-#define TYPE_Dx 0x0000002000000000ULL
-#define TYPE_Rs 0x0000004000000000ULL
-#define TYPE_Vt 0x0000008000000000ULL
-#define TYPE_Lb 0x0000010000000000ULL
+#define TYPE_arch 0x0000000000000004ULL
+#define TYPE_sec 0x0000000000000008ULL
+#define TYPE_Xr 0x0000000000000010ULL
+#define TYPE_Ar 0x0000000000000020ULL
+#define TYPE_Fa 0x0000000000000040ULL
+#define TYPE_Fl 0x0000000000000080ULL
+#define TYPE_Dv 0x0000000000000100ULL
+#define TYPE_Fn 0x0000000000000200ULL
+#define TYPE_Ic 0x0000000000000400ULL
+#define TYPE_Pa 0x0000000000000800ULL
+#define TYPE_Cm 0x0000000000001000ULL
+#define TYPE_Li 0x0000000000002000ULL
+#define TYPE_Em 0x0000000000004000ULL
+#define TYPE_Cd 0x0000000000008000ULL
+#define TYPE_Va 0x0000000000010000ULL
+#define TYPE_Ft 0x0000000000020000ULL
+#define TYPE_Tn 0x0000000000040000ULL
+#define TYPE_Er 0x0000000000080000ULL
+#define TYPE_Ev 0x0000000000100000ULL
+#define TYPE_Sy 0x0000000000200000ULL
+#define TYPE_Sh 0x0000000000400000ULL
+#define TYPE_In 0x0000000000800000ULL
+#define TYPE_Ss 0x0000000001000000ULL
+#define TYPE_Ox 0x0000000002000000ULL
+#define TYPE_An 0x0000000004000000ULL
+#define TYPE_Mt 0x0000000008000000ULL
+#define TYPE_St 0x0000000010000000ULL
+#define TYPE_Bx 0x0000000020000000ULL
+#define TYPE_At 0x0000000040000000ULL
+#define TYPE_Nx 0x0000000080000000ULL
+#define TYPE_Fx 0x0000000100000000ULL
+#define TYPE_Lk 0x0000000200000000ULL
+#define TYPE_Ms 0x0000000400000000ULL
+#define TYPE_Bsx 0x0000000800000000ULL
+#define TYPE_Dx 0x0000001000000000ULL
+#define TYPE_Rs 0x0000002000000000ULL
+#define TYPE_Vt 0x0000004000000000ULL
+#define TYPE_Lb 0x0000008000000000ULL
+#define TYPE_Nd 0x0000010000000000ULL
__BEGIN_DECLS