<table><tr><td style="">cullmann created this revision.<br />Restricted Application added a project: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4941" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Avoid a lot allocations in KConfig: We anyway free this QByteArray direcly after use, no need to shrink it, which only leads (if at all) to unnecessary allocations.</p>

<p>Seen in e.g. heaptrack with Kate. (btw., thanks to Milian for writing that :)</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Given it only alters the allocation behavior, no changes visible, beside less heap allocs.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R237 KConfig</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4941" rel="noreferrer">https://phabricator.kde.org/D4941</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/kconfigini.cpp</div></div></div><br /><div><strong>To: </strong>cullmann, Frameworks<br /></div>