summaryrefslogtreecommitdiff
path: root/view/pe/teview.cpp
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2024-11-08 13:29:00 +0800
committerXusheng <xusheng@vector35.com>2024-11-13 18:45:59 +0800
commit8a00fb5b8c1b9c82db5528b288859227a7e35868 (patch)
tree8d240dcd729437064c0c9d254cde37dc2229dd07 /view/pe/teview.cpp
parent30a0fbb5839b08dc58efe602a5cd19c90fbd4c50 (diff)
Bulk add segments in the binary view to improve performance
Diffstat (limited to 'view/pe/teview.cpp')
-rw-r--r--view/pe/teview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/view/pe/teview.cpp b/view/pe/teview.cpp
index 5e0a2a0e..f8666717 100644
--- a/view/pe/teview.cpp
+++ b/view/pe/teview.cpp
@@ -109,6 +109,7 @@ void TEView::ReadTEImageSectionHeaders(BinaryReader& reader, uint32_t numSection
void TEView::CreateSections()
{
+ BeginBulkAddSegments();
for (size_t i = 0; i < m_sections.size(); i++)
{
auto section = m_sections[i];
@@ -138,6 +139,7 @@ void TEView::CreateSections()
semantics = ReadWriteDataSectionSemantics;
AddAutoSection(section.name, section.virtualAddress + m_imageBase, section.virtualSize, semantics);
}
+ EndBulkAddSegments();
}
void TEView::AssignHeaderTypes()