On 03/17/2018 05:24 PM, Robin Broda wrote:
This patch incurs a **severe** performance degradation when generating the .BUILDINFO file, likely due to frequent usage of `pacman -Qi` and `grep -E`. I haven't found a faster way to gather this information.
I'm not sure we can, without adding a dependency on e.g. expac. Which would admittedly be a lot cleaner and we could also remove the existing sed command. The downside is depending on a pretty specific tool. The plus side is ensuring that everyone has a pretty cool tool installed by default... pacman itself does not really give output meant for parsing. ... The alternative, reproduction-wise, is of course to brute force by trying to access both "x86_64" and "any" (it would suffice to check the return code of curl -IfLls -o /dev/null $url). I don't think this is a terrible option, unless Allan is willing to accept expac-based patches... -- Eli Schwartz Bug Wrangler and Trusted User