cullmann added a reviewer: loh.tar. cullmann added a comment.
Could you try this patch? With it, the test case from the bug properly works with < 3GB of memory. It is still VERY slow, but it doesn't lead to an unusable state. Before, alone the replacement moving ranges that are used for the hl at the end did take extra 4-5 GB of memory. REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D17441 To: cullmann, dhaumann, #kate, loh.tar Cc: kwrite-devel, kde-frameworks-devel, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann