mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Fix startup performance on Qt5
Use more appropriate container (QList) for resume data queue buffer. QVector in Qt5 has poor performance of the first element taking operation, which is used to process the resume data queue. In Qt6, QVector is just an alias for QList, so there was no problem there. PR #18387. Fixes #18341.
This commit is contained in:
parent
719e4afd8c
commit
2b20d5b260
3 changed files with 7 additions and 6 deletions
|
@ -340,7 +340,7 @@ struct BitTorrent::SessionImpl::ResumeSessionContext final : public QObject
|
|||
|
||||
ResumeDataStorage *startupStorage = nullptr;
|
||||
ResumeDataStorageType currentStorageType = ResumeDataStorageType::Legacy;
|
||||
QVector<LoadedResumeData> loadedResumeData;
|
||||
QList<LoadedResumeData> loadedResumeData;
|
||||
int processingResumeDataCount = 0;
|
||||
int64_t totalResumeDataCount = 0;
|
||||
int64_t finishedResumeDataCount = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue