[Kmymoney-devel] Review Request 115551: Performance optimization for MyMoneySeqAccessMgr::calculateBalance().

Cristian Oneț onet.cristian at gmail.com
Sat Feb 8 12:53:39 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115551/
-----------------------------------------------------------

(Updated Feb. 8, 2014, 12:53 p.m.)


Review request for KMymoney and Thomas Baumgart.


Changes
-------

Added KCachegrind data screenshots.


Repository: kmymoney


Description
-------

Performance optimization for MyMoneySeqAccessMgr::calculateBalance().

It's still the most expensive method of MyMoneySeqAccessMgr but it's
faster now.

I don't really see why the balance of multiple accounts was computed
just the return the balance of the requested account while throwing
away the rest of the data.

Thomas, I need you opinion on this. 


Diffs
-----

  kmymoney/mymoney/storage/mymoneyseqaccessmgr.cpp ccf2d5873c6cd0ff039c317cd15d237b82426d2d 

Diff: https://git.reviewboard.kde.org/r/115551/diff/


Testing
-------

Ran unit-tests and checked account balances againts the previous version.


File Attachments (updated)
----------------

KCachegrind data before optimization
  https://git.reviewboard.kde.org/media/uploaded/files/2014/02/08/12e5e81e-1230-48a3-bb42-1217f022a839__before.png
KCachegrind data after optimization
  https://git.reviewboard.kde.org/media/uploaded/files/2014/02/08/240fb67f-266c-41a0-ba85-534d85a0b7f3__after.png


Thanks,

Cristian Oneț

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20140208/f77ab906/attachment.html>


More information about the KMyMoney-devel mailing list