Another 18% speedup for mandocdb(8) -Q, found by gprof(1).
authorschwarze <schwarze@openbsd.org>
Mon, 6 Jan 2014 22:39:19 +0000 (22:39 +0000)
committerschwarze <schwarze@openbsd.org>
Mon, 6 Jan 2014 22:39:19 +0000 (22:39 +0000)
commit231c70615b60941c7da3720c968c3e06a2433ef0
tree89d855e3bce9a2c563129f4ab55e1bf3a9b7f27d
parent11b00311b44ffb1c49f068b139c67f4f90240b4b
Another 18% speedup for mandocdb(8) -Q, found by gprof(1).
In -Q mode, refrain form validating and normalizing the format
of the date given in .Dd or .TH, as it won't be used anyway.

For /usr/share/man, mandocdb -Q now takes 45% of the time of makewhatis(8).
usr.bin/mandoc/man_validate.c
usr.bin/mandoc/mdoc_validate.c