summaryrefslogtreecommitdiffstats
path: root/src/network/access/qabstractnetworkcache.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-01-04 18:31:12 +0200
committerAhmad Samir <a.samirh78@gmail.com>2023-01-12 21:16:27 +0200
commit56e42f18180d7d31b4d0b152d2b841ea096e7bb4 (patch)
treec13ca3ba7f83d7cd3a4cb6ad83167e63a6171e49 /src/network/access/qabstractnetworkcache.cpp
parent51b1a23aa10d37e937a17dc4d79ae84388e3dceb (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/qabstractnetworkcache.cpp')
0 files changed, 0 insertions, 0 deletions