| 1371 | } |
| 1372 | |
| 1373 | void CKnownFile::SetPublishedED2K(bool val){ |
| 1374 | if (m_PublishedED2K == val) { |
| 1375 | // No-op state changes are a hot path during ClearED2KPublishInfo |
| 1376 | // (which writes false to every shared file regardless of current |
| 1377 | // state) — the GUI cascade is O(N) per call due to FindItem in |
| 1378 | // CSharedFilesCtrl::UpdateItem, so unconditional notify here was |
| 1379 | // O(N²) on a single-threaded main loop. See #302. |
| 1380 | return; |
| 1381 | } |
| 1382 | m_PublishedED2K = val; |
| 1383 | Notify_SharedFilesUpdateItem(this); |
| 1384 | } |
| 1385 | |
| 1386 | bool CKnownFile::PublishNotes() |
| 1387 | { |
no outgoing calls
no test coverage detected