diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-03-29 12:59:43 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-04-06 13:40:14 +0800 |
commit | 213ae07750fc7532e8ba62a234e958388d1f0359 (patch) | |
tree | 9709b843f922df4e401d604289c3bcd8bb09cfb0 /BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py | |
parent | 024bdafc6800ee1e219df16bc11ca7a4c007a81d (diff) | |
download | edk2-platforms-213ae07750fc7532e8ba62a234e958388d1f0359.tar.xz |
BaseTools: cache the defined Guid tool to improve the performance
Current GenFds Tool class GuidSection() is parsing the tools_def.txt for
every GUID'ed section that has a GUID defined tool, it cause a bad
performance. so this patch cache the defined Guid tool to improve the
performance.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py')
-rw-r--r-- | BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py b/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py index 8a974236f2..d1c9aff8d0 100644 --- a/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py +++ b/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py @@ -1,7 +1,7 @@ ## @file
# Global variables for GenFds
#
-# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -68,6 +68,7 @@ class GenFdsGlobalVariable: BuildRuleFamily = "MSFT"
ToolChainFamily = "MSFT"
__BuildRuleDatabase = None
+ GuidToolDefinition = {}
#
# The list whose element are flags to indicate if large FFS or SECTION files exist in FV.
|