https://bugs.kde.org/show_bug.cgi?id=465841
Waqar Ahmed <waqar....@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Latest Commit| |https://invent.kde.org/fram | |eworks/ktexteditor/commit/0 | |2a76278f9596e35cb99b42065a4 | |a529b51a1992 --- Comment #12 from Waqar Ahmed <waqar....@gmail.com> --- Git commit 02a76278f9596e35cb99b42065a4a529b51a1992 by Waqar Ahmed. Committed on 02/03/2023 at 15:47. Pushed by cullmann into branch 'master'. Optimize rendering spaces with dyn wrapping When dynamic wrapping is enabled and a QTextLine has trailing spaces, then those spaces aren't really shown unless QTextOption::ShowTabsAndSpaces is enabled. Thus we shouldn't waste time rendering spaces at the same position. With this commit, rendering of spaces is split into 3 steps: 1. Collect all spaces in the line by iterating over the text in reverse 2. Iterate over all the collected spaces in reverse because we want to look at the spaces in the beginning of line first and convert each space position into a QPointF. Whenever we encounter a point which was equal to the last collected point, we stop the loop and break. 3. Render all the collected space points at once. M +30 -8 src/render/katerenderer.cpp M +1 -1 src/render/katerenderer.h https://invent.kde.org/frameworks/ktexteditor/commit/02a76278f9596e35cb99b42065a4a529b51a1992 -- You are receiving this mail because: You are watching all bug changes.