diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2023-01-04 18:31:12 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-01-12 21:16:27 +0200 |
commit | 56e42f18180d7d31b4d0b152d2b841ea096e7bb4 (patch) | |
tree | c13ca3ba7f83d7cd3a4cb6ad83167e63a6171e49 /src/network/access/qhttpmultipart.h | |
parent | 51b1a23aa10d37e937a17dc4d79ae84388e3dceb (diff) |
QNetworkDiskCache: optimize expire()
- Use a std::vector<struct> that has the needed info already cached
(e.g. now size() isn't computed twice)
- Only sort the cache items if the size exceeds the cache limit and
there are files to remove
Change-Id: I69a7a5d1afb26d156c4babddf6b357ec68d569d1
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network/access/qhttpmultipart.h')
0 files changed, 0 insertions, 0 deletions