audk/BaseTools/Source/Python/GenFds
BobCF 2f818ed0fb BaseTools: Replace the sqlite database with list
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>
2018-12-07 10:23:07 +08:00
..
AprioriSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
Capsule.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
CapsuleData.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
ComponentStatement.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
CompressSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
DataSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
DepexSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
EfiSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
Fd.py Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
FdfParser.py BaseTools: create and use a standard shared variable for '*' 2018-12-06 17:11:24 +08:00
Ffs.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
FfsFileStatement.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
FfsInfStatement.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
Fv.py Basetools/GenFds: refactor class FV 2018-10-25 20:15:32 +08:00
FvImageSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
GenFds.py BaseTools: Replace the sqlite database with list 2018-12-07 10:23:07 +08:00
GenFdsGlobalVariable.py BaseTools: create and use a standard shared variable for '*' 2018-12-06 17:11:24 +08:00
GuidSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
OptRomFileStatement.py Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
OptRomInfStatement.py Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
OptionRom.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
Region.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
Rule.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
RuleComplexFile.py Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
RuleSimpleFile.py Revert BaseTools: PYTHON3 migration 2018-10-15 08:29:14 +08:00
Section.py BaseTools: create and use a standard shared variable for '*' 2018-12-06 17:11:24 +08:00
UiSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
VerSection.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
Vtf.py BaseTools/GenFds: cleanup GenFds 2018-10-25 20:14:49 +08:00
__init__.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00