summaryrefslogtreecommitdiff
path: root/bin/chmod
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-01-15 15:28:52 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-01-15 15:28:52 +0000
commite53ff0dfa30b38cd2211b84000abfdb299ade02d (patch)
tree59fb72b4c351d0cbd23ce25175174d45b78d3c39 /bin/chmod
parent75901ebabcfd319fd556bcdd8a8fd77bb904070e (diff)
When looking up macro values while the macro tables are being built
in makewhatis(8), use ohash rather than linear searches. This was identified as the main makewhatis(8) performance bottleneck by Baptiste Daroussin <bapt at FreeBSD>, who also suggested part of the improved algorithm. This reduces the run time of "makewhatis /usr/share/man" from eleven to five seconds on my notebook. Note that the changed code is not used in apropos(1), so don't expect speedups there. While here, sort macro values asciibetically, to improve reproducibility - which still isn't perfect, but getting better.
Diffstat (limited to 'bin/chmod')
0 files changed, 0 insertions, 0 deletions