From 9fec1b3fafe4a9a3126e203ee01045ed4ae15aba Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 30 Oct 2018 23:18:41 +1100 Subject: Buffer: Remove m_line_count field from BufferIterator It seems unlikely this would give performance gain, as buffer lines are always accessed when we read that field, leading to all the necessary data already being in memory. Removing it reduces the size of a BufferIterator, which are already pretty hefty objects. --- src/buffer.hh | 1 - 1 file changed, 1 deletion(-) (limited to 'src/buffer.hh') diff --git a/src/buffer.hh b/src/buffer.hh index 0cdb8209..3114e861 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -92,7 +92,6 @@ public: private: SafePtr m_buffer; BufferCoord m_coord; - LineCount m_line_count; StringView m_line; }; -- cgit v1.2.3