[prev in list] [next in list] [prev in thread] [next in thread]
List: kmymoney-devel
Subject: Re: [Kmymoney-devel] Refreshing views only when needed
From: Cristian =?utf-8?q?One=C8=9B?= <onet.cristian () gmail ! com>
Date: 2010-09-08 18:08:01
Message-ID: 201009082108.07617.onet.cristian () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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.
--
Regards,
Cristian OneČ›
["signature.asc" (application/pgp-signature)]
_______________________________________________
KMyMoney-devel mailing list
KMyMoney-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmymoney-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic