D4941: Avoid a lot allocations in KConfig
Kevin Funk
kfunk at kde.org
Sun Mar 5 18:04:50 UTC 2017
On Sunday, 5 March 2017 15:56:25 CET Christoph Cullmann wrote:
> 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
> :)
There's an initial version of a heaptrack plugin for KDevelop, if you want to
try! ;)
See:
https://phabricator.kde.org/D4910
Cheers,
Kevin
> 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
--
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170305/fae60caa/attachment.sig>
More information about the Kde-frameworks-devel
mailing list