[gpodder-devel] Performance patches / splash screen

  • From: thp at perli.net (Thomas Perl)
  • Date: Thu, 20 Mar 2008 10:37:16 +0100

Hello, Nick!

On Wed, 2008-03-19 at 17:25 -0500, nikosapi wrote:
> Two words to sum up the speed improvements: -holy crap-


> Coincidentally I was doing a bunch of testing this morning to see what
> was causing gPodder's slow start up. In my testing I found it took
> about 46 seconds for svn r612 to start up and when using the psyco
> "specializing compiler" I was able to get it down to about 30 sec.
> Applying your patch (non-splash) brought that down to 5.7 seconds!

Yes, I think the most time-consuming part was that DumbShelve was
serializing the whole feed data every time sync() was called on it. I
fixed this by marking it as dirty when there have been updates and only
serializing and writing to file when it is "dirty". I'm currently
working on polishing the patch a bit more, so it's ready to go into SVN.

> The splash screen is very nice (with compiz turned on) but like Bernd
> said, it would be very nice to know what's going on while it's
> loading. Perhaps just some text saying "x feeds of y loaded" or
> something like that just to inform the user that something is indeed
> happening.

I will put it into "doc/dev/" in SVN's trunk, so we have it in case we
want to use it in the future (when all desktops are composited by
default?), because it doesn't look so good with non-composited desktops.
Also, with the patch you sent (the entity regex patch), I get my gPodder
starting up in 1.50 seconds (with 9 feeds), so the splash screen would
probably only slow down things here ;)

Thanks for your feedback :)


Other related posts: