Skip to content
Commit 6658f793 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Optimize TextBuffer::blockForLine

Instead of caching + binary search just divide line by blockSize. In
most cases, this takes us directly to the block containing line.

Besides that m_blockSize is always 64 so we can simplify our code
based on this fact in future
parent 49887ef5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment