https://bugs.kde.org/show_bug.cgi?id=502826

--- Comment #16 from Arjen Hiemstra <ahiems...@heimr.nl> ---
Git commit b18c42b57a51a0d02284989535e28a69c323063c by Arjen Hiemstra.
Committed on 03/06/2025 at 08:21.
Pushed by ahiemstra into branch 'Plasma/6.4'.

processcore: Batch changes to processes in ProcessDataModel

We are currently emitting a single data change signal for every change
in a process, even if it is a change to different columns of the same
row. This is rather inefficient and can cause multiple updates of a view
without that being necessary.

Instead, rather than directly emitting dataChanged when a process
changes, record that the process changed and process all changes after
processes have been updated. This allows us to go through all the
changes and figure out what the range is of changed rows and columns and
emit a single dataChanged for that entire range.

This hopefully also fixes a crash in TreeView that can rarely happen
when ProcessDataModel emits dataChanged


(cherry picked from commit eff50b6e1fe89dd72bacd47a8907a2225525cae0)

Co-authored-by: Arjen Hiemstra <ahiems...@heimr.nl>

M  +74   -15   processcore/process_data_model.cpp

https://invent.kde.org/plasma/libksysguard/-/commit/b18c42b57a51a0d02284989535e28a69c323063c

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to