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