[Kmymoney-devel] Refreshing views only when needed

Thomas Baumgart thb at net-bembel.de
Wed Sep 8 20:39:32 CEST 2010


Hi,

on Wednesday 08 September 2010 Cristian Oneț wrote:



> On Wednesday 08 September 2010 20:43:28 Alvaro Soliverez wrote:
> > Hello all,
> > here's an idea on improving performance.
> >
> > KMM refreshes all views when data changes. The fileChanged signal is
> > connected to a slot that refreshes all views. So, regardless of
> > whether that view is actually being shown (or is ever going to be
> > shown at all), the view reloads all its data.
> >
> > My proposal is the following:
> >
> > - In each view, add a flag that signals whether the view should be
> > refreshed or not
> > - Only refresh a view if it is visible at the moment, otherwise set the
> > flag - On the showEvent of each view, check the flag, and refresh if
> > needed
> >
> > I think this is a relatively simple modification, and it could help a
> > great deal toward improving performance.
> >
> > Thoughts?
> 
> AFAICT this is already implemented in most of the views (see m_needReload)
>  and if there are some which don't behave this way then they should be
>  fixed.

... unless someone removed it during the port from KDE3.  The exact 
functionality you mention is around for a few years already.


-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
To mess up a Linux box, you need to work at it;
to mess up your Windows box, you just need to work on it.
Scott Granneman, Security Focus
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 224 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100908/25e43048/attachment.sig 


More information about the KMyMoney-devel mailing list