summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2021-10-19 18:02:19 -0400
committerGlenn Smith <glenn@vector35.com>2021-10-19 18:02:19 -0400
commitcdc0d5ac31ef3ae1438ceaf05808b9268a01b309 (patch)
tree04c462c1c22fe961dec536a4454990d2347c3f5c
parentef8e5d04c0a7d5bb51623d25e5d8b22053495b8a (diff)
LinearView performance: remember cached regions
-rw-r--r--ui/linearview.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/linearview.h b/ui/linearview.h
index 7edf8097..d2ad807c 100644
--- a/ui/linearview.h
+++ b/ui/linearview.h
@@ -18,6 +18,7 @@
struct BINARYNINJAUIAPI LinearViewLine: public BinaryNinja::LinearDisassemblyLine
{
BinaryNinja::Ref<BinaryNinja::LinearViewCursor> cursor;
+ size_t cursorSize;
size_t lineIndex;
};
@@ -145,6 +146,8 @@ class BINARYNINJAUIAPI LinearView: public QAbstractScrollArea, public View, publ
InstructionEdit* m_instrEdit;
+ BNAddressRange m_cacheBounds;
+ std::vector<BNAddressRange> m_cachedRegions;
BinaryNinja::Ref<BinaryNinja::LinearViewCursor> m_topPosition, m_bottomPosition;
std::vector<LinearViewLine> m_lines;
size_t m_topLine;