D4941: Avoid a lot allocations in KConfig

Christoph Cullmann noreply at phabricator.kde.org
Sun Mar 5 15:56:25 UTC 2017


cullmann created this revision.
Restricted Application added a project: Frameworks.

REVISION SUMMARY
  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.
  
  Seen in e.g. heaptrack with Kate. (btw., thanks to Milian for writing that :)

TEST PLAN
  Given it only alters the allocation behavior, no changes visible, beside less heap allocs.

REPOSITORY
  R237 KConfig

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

AFFECTED FILES
  src/core/kconfigini.cpp

To: cullmann, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170305/bff032da/attachment.html>


More information about the Kde-frameworks-devel mailing list