mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-12 19:50:17 +05:00
280e51f53 restricted the dataChanged() refresh to the affected post unless more than 5 messages changed, in which case it refreshes the whole view. But changed_msgs counts message ids, and a post carries one id per stored version of itself, all sharing one read status: marking a single post read or unread on a post edited 46 times queued 47 ids and triggered the whole-model refresh. Measured on a 8259 post forum: one click, one row repainted, 1072 ms of frozen GUI in the dataChanged() handling; with this fix the same click costs about 1 ms. Count the changed rows separately and size the refresh on that. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||