New review comment by subnut on void-packages repository https://github.com/void-linux/void-packages/pull/36362#discussion_r835795777 Comment: Answering myself: One of the reasons will be that the template file is sourced many times, thus any command run on the top level will cause significant slowdowns.