mirror_edk2/BaseTools/Source/Python
Zhao, ZhiqiangX b3497bad12 BaseTools: AutoGen and GenFds share the parser data.
V2:
Extract the common part of new API and the original main() function
into one function.

V1:
https://bugzilla.tianocore.org/show_bug.cgi?id=1288

Currently, AutoGen and GenFds run in different python interpreters. The
parser are duplicated. This patch is going to create new API for GenFds
and have the build to call that API instead of executing GenFds.py. As
such, the GenFds and build can share the parser data.

This patch is expected to save the time of GenFds about 2~3 seconds.
More details will be logged in BZ.

This is the summary measure data generated from python cProfile for
building Ovmf.

Currently:
8379147 function calls (8135450 primitive calls) in 12.580 seconds

After applying this patch:
3428712 function calls (3418881 primitive calls) in 8.944 seconds

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: ZhiqiangX Zhao <zhiqiangx.zhao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Carsey Jaben <jaben.carsey@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
2018-12-07 10:12:05 +08:00
..
AutoGen BaseTools: AutoGen and GenFds share the parser data. 2018-12-07 10:12:05 +08:00
BPDG BaseTools: create and use a standard shared variable for '*' 2018-12-06 17:11:24 +08:00
build BaseTools: AutoGen and GenFds share the parser data. 2018-12-07 10:12:05 +08:00
Capsule BaseTools/Capsule: Support capsules without a payload header 2018-08-02 14:35:29 -07:00
Common BaseTools: Enable Pcd Array support. 2018-12-07 09:59:36 +08:00
CommonDataClass BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
Ecc BaseTools/Ecc: Update a checkpoint criteria. 2018-10-24 08:41:04 +08:00
Eot BaseTools: Move Identification file to Eot 2018-12-06 17:08:09 +08:00
GenFds BaseTools: AutoGen and GenFds share the parser data. 2018-12-07 10:12:05 +08:00
GenPatchPcdTable Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
PatchPcdValue Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
Pkcs7Sign Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
Rsa2048Sha256Sign Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
Table Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
TargetTool Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
Trim Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
UPT BaseTools/UPT: Fix an issue of UNI string checking. 2018-10-24 08:41:05 +08:00
Workspace BaseTool: Filter out unused structure pcds 2018-12-07 10:03:02 +08:00
GNUmakefile Sync BaseTool trunk (version r2599) into EDKII BaseTools. 2013-08-23 02:18:16 +00:00
Makefile BaseTools: Remove the step to freeze python tool 2018-10-19 08:21:47 +08:00
sitecustomize.py BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00