Performance enhancements (#527)

This commit is contained in:
MS
2024-02-04 13:37:37 -05:00
committed by GitHub
parent b4c9d78eb4
commit 8cc79ad4de
9 changed files with 328 additions and 123 deletions

View File

@@ -80,7 +80,7 @@ def print_sections(sections):
print(" name | start | v.size | raw size")
print("---------|----------|----------|----------")
for sect in sections:
name = sect.name.decode("ascii").rstrip("\x00")
name = sect.name
print(
f"{name:>8} | {sect.virtual_address:8x} | {sect.virtual_size:8x} | {sect.size_of_raw_data:8x}"
)