Skip to content

Optimize TextBuffer::blockForLine

Waqar Ahmed requested to merge work/blockforline into master

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

Merge request reports