https://bugs.kde.org/show_bug.cgi?id=465841
--- Comment #18 from Christoph Cullmann <cullm...@kde.org> --- Git commit 294543a2977c4181bb0842c2a45f573f8335fd03 by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 03/03/2023 at 19:42. Pushed by cullmann into branch 'master'. Improve cstyle performance With this patch I can notice 7x-8x improvement in performance. The main culprit was `tryMultiLineStringLiteral` which searched the whole document for a multiline literal beginning. I have now limited it to 25 lines max. Besides, the multiline string matching is useless for every other language besides C++ so return early if the mode is no C++ Related: bug 466531 M +1 -0 autotests/input/indent/cstyle/indentpaste5/expected M +1 -0 autotests/input/indent/cstyle/indentpaste5/origin M +1 -0 autotests/input/indent/cstyle/string2/expected M +1 -0 autotests/input/indent/cstyle/string2/origin M +9 -0 src/script/data/indentation/cstyle.js https://invent.kde.org/frameworks/ktexteditor/commit/294543a2977c4181bb0842c2a45f573f8335fd03 -- You are receiving this mail because: You are watching all bug changes.