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
Please register or sign in to comment