Run kwrite and paste a relative long text several times and then undo until the text is empty, with only one view.
Before: {F5821740} it used 65% of cpu instructions in Kate::TextBuffer::notifyAboutRangeChange
After: {F5821746} it uses 19% of cpu instructions in in Kate::TextBuffer::notifyAboutRangeChange