diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-06 20:53:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-06 20:53:40 +0000 |
commit | 8af38b3d67df7e658bfc44cdd727c45ceb20191a (patch) | |
tree | 70bc67e3dcac6c4fc448f47b8d542a532af5cc5a /test-fgetln.c | |
parent | 89f86436d75b5a251d1132d30feb5a07cd39cbce (diff) | |
download | mandoc-8af38b3d67df7e658bfc44cdd727c45ceb20191a.tar.gz mandoc-8af38b3d67df7e658bfc44cdd727c45ceb20191a.tar.zst mandoc-8af38b3d67df7e658bfc44cdd727c45ceb20191a.zip |
Do not sync to disk after each individual manual page (duh!),
only sync to disk one single time when all data is ready.
Rebuild times for /usr/share/man/mandoc.db shrink on my notebook:
In standard mode from 45 seconds to 11 seconds (75% reduction)
In -Q mode from 25 seconds to 3.1 seconds (87% reduction)
For comparison: makewhatis(8): 4.2 seconds
That is, in -Q mode, we are now *faster* than the existing makewhatis(8),
and careful profiling shows there is still a lot of room for improval.
Diffstat (limited to 'test-fgetln.c')
0 files changed, 0 insertions, 0 deletions