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
Please register or sign in to comment