[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: branches/work/make_kget_cool/kget/core
From:       Dario Massarin <nekkar () libero ! it>
Date:       2006-12-31 18:42:55
Message-ID: 200612311933.41814.nekkar () libero ! it
[Download RAW message or body]

On Sunday 31 December 2006 12:26, Dario Massarin wrote:
> SVN commit 618160 by dario:
>
> Massive performance optimization. Cache the transferChanged and
> transferGroupChanged event directly on the TransferTreeModel class
> by starting a timer when an event happens and committing all the
> gui changes of all the transfers and groups after 200 msec. Note
> that at this point the timer is stopped and a new one is started
> only if another event occurs.
>
> This drops the cpu usage with the multisegments plugin from ~80%
> to ~5% on my machine. It's a good result, but not enough..

Manolo, the most part of the cpu usage was due to the gui being refreshed
too much frequently, but even disabling gui updates at all we have something
like 5% of *kget* cpu usage with 2 active downloads, and I'm not even
counting the kio_http and kio_ftp threads that are running in background.
It would be interesting to try to profile kget with valgrind, in order to 
understand where we could improve our code!

Bye!!
	Dario
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic