mirror of https://github.com/acidanthera/audk.git
2f818ed0fb
https://bugzilla.tianocore.org/show_bug.cgi?id=1288 [V2] Optimize this patch so that it can be easy to review. This patch is just apply the change to original files while not create new similar files. [V1] This patch is one of build tool performance improvement series patches. This patch is going to use python list to store the parser data instead of using sqlite database. The replacement solution is as below: SQL insert: list.append() SQL select: list comprehension. for example: Select * from table where field = “something” -> [ item for item in table if item[3] == “something”] SQL update: python map function. for example: Update table set field1=newvalue where filed2 = “something”. -> map(lambda x: x[1] = newvalue, [item for item in table if item[2] == “something”]) SQL delete: list comprehension. With this change, We can save the time of interpreting SQL statement and the time of write database to file system Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: BobCF <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> |
||
---|---|---|
.. | ||
AprioriSection.py | ||
Capsule.py | ||
CapsuleData.py | ||
ComponentStatement.py | ||
CompressSection.py | ||
DataSection.py | ||
DepexSection.py | ||
EfiSection.py | ||
Fd.py | ||
FdfParser.py | ||
Ffs.py | ||
FfsFileStatement.py | ||
FfsInfStatement.py | ||
Fv.py | ||
FvImageSection.py | ||
GenFds.py | ||
GenFdsGlobalVariable.py | ||
GuidSection.py | ||
OptRomFileStatement.py | ||
OptRomInfStatement.py | ||
OptionRom.py | ||
Region.py | ||
Rule.py | ||
RuleComplexFile.py | ||
RuleSimpleFile.py | ||
Section.py | ||
UiSection.py | ||
VerSection.py | ||
Vtf.py | ||
__init__.py |