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

--- Comment #14 from Arjen Hiemstra <ahiems...@heimr.nl> ---
Git commit eff50b6e1fe89dd72bacd47a8907a2225525cae0 by Arjen Hiemstra.
Committed on 02/06/2025 at 16:29.
Pushed by ahiemstra into branch 'master'.

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

M  +74   -15   processcore/process_data_model.cpp

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

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

Reply via email to