On Fri, Oct 05, 2018 at 09:26:22AM +0100, Daniel P. Berrangé wrote:
On Fri, Oct 05, 2018 at 04:11:45PM +0800, Shi Lei wrote:
> This patch replaces those 'my varname;' with 'our varname;', i.e.
> it uses global var, rather than passing arguments to subroutine.
> So it can be a bit faster.
NACK
Use of global variables like this is harmful to maintenance of
the code.
Also, it does not really speed up the script.
Given that most of the slowdown happened by separating the code into
subroutines, I suspect that the regexes are no longer cached.
Jano