summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-11-07 16:55:48 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-11-07 16:55:48 +0000
commit6bb775241cf44fa2aec40c1fa0294e8b7379cf70 (patch)
tree6d0ee75ef67a3de60bf6cc7ffe46b36ecabee4bd /src/buffer.hh
parent04c8334c984bc71102b5065765a42a0b61932e63 (diff)
Optimize BufferIterator to avoid a lot of pointer chasing
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 4353f1b7..819fd8c9 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -57,6 +57,8 @@ public:
private:
SafePtr<const Buffer> m_buffer;
ByteCoord m_coord;
+ ByteCount m_line_length;
+ LineCount m_line_count;
};
using BufferLines = Vector<StringDataPtr, MemoryDomain::BufferContent>;