ratt-ru / meqtrees

A library for implementing radio astronomical Measurement Equations
http://meqtrees.net
10 stars 2 forks source link

a deluge of errors slows down the browser #799

Closed gijzelaerr closed 10 years ago

gijzelaerr commented 10 years ago
at 2011-06-28 23:52:44 Oleg Smirnov reported:

a deluge of errors slows down the browser

gijzelaerr commented 10 years ago

Original comment thread migrated from bugzilla

at 2011-06-28 23:52:44 Oleg Smirnov replied:

When the meqserver reports a deluge of errors (i.e. when something goes REALLY wrong in a big tree), the browser goes mad with error reports, and its performance slows to a crawl. Could this have to do with the exclamation icon being replaced/redrawn on the Messages tab? In any case this needs to be fixed.

at 2011-07-01 21:36:33 Oleg Smirnov replied:

The problem is endemic to QTreeWidget: adding items one by one quickly brings it to a halt. One solutiuon is to pile up messages in batches, and add them to the widget all at once. This is a bit complicated... Another solution has been implemented in r8249: added "flood protection" to the logger widgets, so that they suspend logging if too many errors are received at once.