Skip to content
Commit 4be5dad1 authored by Milian Wolff's avatar Milian Wolff
Browse files

optimize: leverage implitic QByteArray sharing to further reduce memory consumption

store labels on first encounter in a QHash and reuse copies of
the labels there, which are just shallow, implicitly shared copies.

further decreases the memory consumption considerably for my test case,
where the consumption goes down by about 50%.

Many thanks to André Wöbbeking for the suggestion.

CCMAIL: Woebbeking@kde.org
parent 77d9a148
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment