From: "Bob Feng" <bob.c.feng@intel.com>
To: devel@edk2.groups.io
Subject: [Patch 0/3] Clean BaseTools code for build performance
Date: Tue, 10 Sep 2019 17:37:05 +0800 [thread overview]
Message-ID: <20190910093705.34060-1-bob.c.feng@intel.com> (raw)
REF:
1 https://bugzilla.tianocore.org/show_bug.cgi?id=2102
2 https://bugzilla.tianocore.org/show_bug.cgi?id=2101
3 https://bugzilla.tianocore.org/show_bug.cgi?id=2183
By profiling build Ovmf with cProfile:
1. re.findall time reduced:
after patch:
0.017 {method 'findall' of '_sre.SRE_Pattern' objects}
original:
0.212 {method 'findall' of '_sre.SRE_Pattern' objects}
2. times of call of os.stat is reduced
after patch:
33307 {built-in method nt.stat}
orignial:
33774 {built-in method nt.stat}
3. rename call is removed.
original:
2.165 {built-in method nt.rename}
Feng, Bob C (3):
BaseTools: Improve GetDependencyList function
BaseTools: remove unnecessary calls of os.exist
BaseTools:Remove the unnecessary operation of renaming a file.
.../Source/Python/AutoGen/AutoGenWorker.py | 7 +-
BaseTools/Source/Python/AutoGen/GenC.py | 97 ++++++++++---------
BaseTools/Source/Python/AutoGen/GenMake.py | 35 ++++---
.../Source/Python/AutoGen/PlatformAutoGen.py | 8 +-
.../Source/Python/AutoGen/UniClassObject.py | 5 +-
BaseTools/Source/Python/Common/Misc.py | 23 +----
6 files changed, 82 insertions(+), 93 deletions(-)
--
2.20.1.windows.1
next reply other threads:[~2019-09-10 9:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-10 9:37 Bob Feng [this message]
2019-09-17 1:53 ` [edk2-devel] [Patch 0/3] Clean BaseTools code for build performance Liming Gao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190910093705.34060-1-bob.c.feng@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox