public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch 0/2] Convert Split tool to python
@ 2021-01-13  9:56 Bob Feng
  2021-01-13  9:56 ` [Patch 1/2] BaseTools: " Bob Feng
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Bob Feng @ 2021-01-13  9:56 UTC (permalink / raw)
  To: devel

There are 2 reasons to convert Split tool from C to Python.
1. We are in the process of moving the Basetools Python code
to a separate repository. But there still are many C tools under
edk2/BaseTools. To make all Basetools be in the separate repo,
we can convert the C tools to Python tools.
2. The original Split tool is very slow. This python tool can reduce
90% time

Bob Feng (2):
  BaseTools: Convert Split tool to python
  BaseTools: Add unittest for Split tool

 BaseTools/Source/C/Split/Split.c            | 466 --------------------
 BaseTools/BinWrappers/PosixLike/Split       |  31 +-
 BaseTools/BinWrappers/WindowsLike/Split.bat |   3 +
 BaseTools/Source/C/GNUmakefile              |   1 -
 BaseTools/Source/C/Makefile                 |   1 -
 BaseTools/Source/C/Split/GNUmakefile        |  17 -
 BaseTools/Source/C/Split/Makefile           |  16 -
 BaseTools/Source/Python/Split/Split.py      | 203 +++++++++
 BaseTools/Source/Python/Split/__init__.py   |  10 +
 BaseTools/Source/Python/tests/test_split.py | 101 +++++
 10 files changed, 325 insertions(+), 524 deletions(-)
 delete mode 100644 BaseTools/Source/C/Split/Split.c
 create mode 100644 BaseTools/BinWrappers/WindowsLike/Split.bat
 delete mode 100644 BaseTools/Source/C/Split/GNUmakefile
 delete mode 100644 BaseTools/Source/C/Split/Makefile
 create mode 100644 BaseTools/Source/Python/Split/Split.py
 create mode 100644 BaseTools/Source/Python/Split/__init__.py
 create mode 100644 BaseTools/Source/Python/tests/test_split.py

-- 
2.29.1.windows.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-01-21  8:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-13  9:56 [Patch 0/2] Convert Split tool to python Bob Feng
2021-01-13  9:56 ` [Patch 1/2] BaseTools: " Bob Feng
2021-01-13  9:56 ` [Patch 2/2] BaseTools: Add unittest for Split tool Bob Feng
2021-01-14  0:53 ` 回复: [edk2-devel] [Patch 0/2] Convert Split tool to python gaoliming
2021-01-14  2:46   ` [edk2-devel] " Bob Feng
2021-01-15  1:12     ` 回复: " gaoliming
2021-01-15  1:49       ` Bob Feng
2021-01-18 23:56         ` Bob Feng
2021-01-19  1:10           ` 回复: " gaoliming
2021-01-19  1:28             ` Bob Feng
     [not found]             ` <165B7DE8D411B030.2239@groups.io>
2021-01-19 13:58               ` Bob Feng
     [not found]               ` <165BA6D400EB9835.28472@groups.io>
2021-01-21  8:15                 ` Bob Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox