cullmann added a comment.
I still am not that convinced that binary search helps for vectors which normally have only << 10-20 elements for normal long text lines. But I would be ok with some range based for variant, as the loop with index increment is even ugly without any speed in mind ;=) REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D11487 To: jtamate, #frameworks, #kate Cc: mwolff, cullmann, michaelh, kevinapavew, ngraham, demsking, sars, dhaumann