forked from Mirror/pmbootstrap
Rewrite the parser to be more efficient: * Avoid using str.startswith() * Simplify logic by parsing backwards and using lines.pop() rather than passing around an index. Testing with "pmbootstrap test apkindex_parse_all" on my x86 laptop: Before: Parsed 78537 packages from 7 APKINDEX files in 1.131 seconds After : Parsed 78537 packages from 7 APKINDEX files in 0.609 seconds That makes for an ~86% improvement, almost twice as fast. Signed-off-by: Caleb Connolly <caleb@postmarketos.org> |
||
---|---|---|
.. | ||
__init__.py | ||
_apkbuild.py | ||
apkindex.py | ||
arguments.py | ||
binfmt_info.py | ||
bootimg.py | ||
cpuinfo.py | ||
depends.py | ||
deviceinfo.py | ||
kconfig.py | ||
version.py |