Re: Optimize script for generating LinuxManBook.pdf

Alejandro Colomar
2023-12-01T00:15:01Z

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

Hi Deri,

On Thu, Nov 30, 2023 at 11:38:18PM +0100, Alejandro Colomar wrote:
> > It replaces the complete LinuxManBook directory and the executable is now
> > called BuildLinuxMan2.pl.
>
> I'd prefer if the huge groff code would go in a separate file. Would
> that make sense?

I've applied a few tweaks to the script you sent before committing it.
The performance is similar, and it's less of a change to the current
code.

<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=0e64299d4dd0df90ea52b3fe6777e5ebfb2484da>

I think we should be able to cut half a second or so if we add a
BuildSec() function so that we don't block the first page until the
entire sort is done. And it would be also more readable. Please check.