]> git.ipfire.org Git - thirdparty/man-pages.git/commit
scripts/LinuxManBook/prepare_linux_man_book.pl: Add new function BuildSec()
authorAlejandro Colomar <alx@kernel.org>
Fri, 24 Nov 2023 11:51:04 +0000 (12:51 +0100)
committerAlejandro Colomar <alx@kernel.org>
Fri, 24 Nov 2023 11:51:38 +0000 (12:51 +0100)
commit843961575420ca8b1651a29796ce160e2b0a5b81
tree34e17a23fb778306381d9cdc710219c33d4b909b
parentdaa0261bbaac7ba89f02096c414a584eeec7acb8
scripts/LinuxManBook/prepare_linux_man_book.pl: Add new function BuildSec()

The intention is to move some code from BuildPage() into this function,
reducing the complexity of that inner function.  As a side effect, just
by adding this function, I've already noticed an optimization of 0.3 s.
The reason, I guess, is that it starts processing pages without waiting
for the entire sort to complete, which reduces the latency of the script.

Cc: Deri James <deri@chuzzlewit.myzen.co.uk>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
scripts/LinuxManBook/prepare_linux_man_book.pl