Investigate if it is worth it to buffer messages to reduce items-changed calls
While it does not seem a lot, the items-changed
signal callbacks of BusNameList
and MessageList
are connected to a lot of things, and emitting it once in a while, instead of every time a message is appended, would probably fix unresponsive issues.
For instance, this would improve situations when 300+ message comes within a 5ms time span. Instead of drawing the diagram and reindexing the models 300+ times, it would just do it once. The 5ms delay would probably be unnoticeable and a great improvement in efficiency and performance.
This should be the last resort though as there are many other algorithm optimizations that can be done all over the source tree, first.
Edited by Dave Patrick