WIP:Disable highlighting after 512 characters on a line.

Authored by cullmann on Jun 16 2019, 9:10 AM.

Description

WIP:Disable highlighting after 512 characters on a line.

Summary:
A lot of time is spent in decorationsForLine() when we have long lines.

Disabling highlighting after 512 characters improves the rendering speed very much, but again it is not so nice to not have highlighting.

Nice test case, see https://bugs.kde.org/show_bug.cgi?id=345775

Test Plan: Edit a text file with 100000 characters on a line and test that it still is possible to edit the file without unacceptable freezes.

Reviewers: vkrause, dhaumann, mwolff, sars

Reviewed By: dhaumann

Subscribers: zetazeta, mwolff, brauch, kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D17241

Details

Committed
cullmannJun 16 2019, 9:10 AM
Reviewer
dhaumann
Differential Revision
D17241: WIP:Disable highlighting after 512 characters on a line.
Parents
R39:0c5279a661ce: KateModeMenuList: move to QListView
Branches
Unknown
Tags
Unknown