So I did some digging through pacman changelogs. It appears this was added in v5 as a feature of
pacman hooks.
The wiki states hooks are in /usr/lib/pacman/hooks or /etc/pacman.d/hooks, the latter being highest priority so it can be used to override default hooks. However, there is no /usr/lib/pacman/hooks on any of my alarm installs.
So I ran a pacman install in debug mode and it showed this:
$this->bbcode_second_pass_code('', 'debug: parsing hook file /usr/share/libalpm/hooks/texinfo-remove.hook
debug: parsing hook file /usr/share/libalpm/hooks/texinfo-install.hook
debug: parsing hook file /usr/share/libalpm/hooks/gio-querymodules.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-ca-trust.hook
debug: parsing hook file /usr/share/libalpm/hooks/udev-hwdb.hook
debug: parsing hook file /usr/share/libalpm/hooks/man-db.hook
debug: parsing hook file /usr/share/libalpm/hooks/man-db-purge.hook
debug: parsing hook file /usr/share/libalpm/hooks/glib-compile-schemes.hook
:: Running post-transaction hooks...
(1/2) Updating manpage index...')
Following the wiki's suggestion, I linked the man page and texinfo ones to /dev/null:
$this->bbcode_second_pass_code('', '> sudo mkdir /etc/pacman.d/hooks
> sudo ln -s /dev/null /etc/pacman.d/hooks/man-db.hook
> sudo ln -s /dev/null /etc/pacman.d/hooks/texinfo-install.hook')
After doing this, in debug mode you can see the slow hook transactions being skipped:
$this->bbcode_second_pass_code('', 'debug: parsing hook file /etc/pacman.d/hooks/texinfo-install.hook
debug: parsing hook file /etc/pacman.d/hooks/man-db.hook
debug: parsing hook file /usr/share/libalpm/hooks/texinfo-remove.hook
debug: skipping overridden hook /usr/share/libalpm/hooks/texinfo-install.hook
debug: parsing hook file /usr/share/libalpm/hooks/gio-querymodules.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-ca-trust.hook
debug: parsing hook file /usr/share/libalpm/hooks/udev-hwdb.hook
debug: skipping overridden hook /usr/share/libalpm/hooks/man-db.hook
debug: parsing hook file /usr/share/libalpm/hooks/man-db-purge.hook
debug: parsing hook file /usr/share/libalpm/hooks/glib-compile-schemes.hook')
And now my pacman installs run full speed again! I'm sure my man page index will be out of date as I continue to install software, so at some point I'll need to setup a systemd timer to run man page updates in the wee hours. I'll work on that later.