[kmymoney] [Bug 387072] Slow switch to ledgerview

Ralf Habacker bugzilla_noreply at kde.org
Sat Nov 18 15:04:20 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=387072

Ralf Habacker <ralf.habacker at freenet.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #1 from Ralf Habacker <ralf.habacker at freenet.de> ---
https://phabricator.kde.org/p/mcherey/

After debugging I saw that problem is in Register::resize that every time goes
through all 5k entries for each visible columns and calculating minimal width
of column by rendering its text. Register::resize is called about 4 times per
first switch (3 times with 'force==true' flag, so guard at the beginning of the
function doesn't help us).
So this little optimization makes it possible to call Register::resize as much
as you want and it won't affect performance if nothing changed in items.

review https://phabricator.kde.org/D8507

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list