gui icon indicating copy to clipboard operation
gui copied to clipboard

Draft: Excess X window traffic when peer tab is selected

Open rebroad opened this issue 4 years ago • 3 comments

Currently, PeerTableModel::data() is called approximately 2128 times per second, and within that 288 times to update the display. Assuming 10 rows and 9 columns, this still averages at about 3 updates per field per second, which given that most fields so not change (network, direction, IP address) seems potentially excessive, and seems to cause significant traffic to X servers.

Still testing workarounds to this.

rebroad avatar Nov 11 '21 13:11 rebroad

What approach are you considering?

promag avatar Nov 11 '21 15:11 promag

@promag I'm not familiar enough with Qt and how to optimize it as of yet to have a plan, but something seems amiiss, judging from the network data throughput according to Process Monitor given the actual level of activity I'm perceiving.

rebroad avatar Nov 12 '21 11:11 rebroad

I'd start here...

https://github.com/bitcoin-core/gui/blob/fe03f7a37fd0ef05149161f6b95a25493e1fe38f/src/qt/peertablemodel.cpp#L22

Screen Shot 2021-11-19 at 10 48 06 PM

RandyMcMillan avatar Nov 20 '21 03:11 RandyMcMillan