D24902: K7Zip: Fix memory use in readAndDecodePackedStreams

David Faure noreply at phabricator.kde.org
Thu Oct 24 09:05:07 BST 2019


dfaure added inline comments.

INLINE COMMENTS

> k7zip.cpp:1678
>  
>          QByteArray inflated;
>          for (const QByteArray& data : qAsConst(inflatedDatas)) {

This makes me realize that there could be an inflated.reserve(unpackSize) here, then, to avoid reallocations.

REPOSITORY
  R243 KArchive

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D24902

To: aacid, vkrause
Cc: kde-frameworks-devel, apol, dfaure, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191024/c1f34519/attachment.html>


More information about the Kde-frameworks-devel mailing list