From e7dc3866ae7dc43c8497080de2f541d44dd083d8 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Wed, 26 Oct 2005 14:51:32 -0400 Subject: [PATCH] Give the global "crt_series" variable a default value The Python interpreter was searching every scope to find crt_series. By providing a default value, this reduces the amount of searching the interpreter does looking for crt_series. I've noticed that most commands are faster with this change. Signed-off-by: Chuck Lever --- stgit/commands/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stgit/commands/common.py b/stgit/commands/common.py index 575aae7..9747981 100644 --- a/stgit/commands/common.py +++ b/stgit/commands/common.py @@ -24,6 +24,8 @@ from optparse import OptionParser, make_option from stgit.utils import * from stgit import stack, git +crt_series = None + # Command exception class class CmdException(Exception): -- 2.11.0