Multiple thread processing

neo_x

28-04-2008 02:34:29

Noticed that during a missing check, or the updating of the shows list, that my CPU is only 50% busy. This , according to me, means that only one of my two cores are being used for processing. Would defintely increase performance if programmed to use all cores, but unfortunately me are not programmer enough to figure out how this will be done. :(

This is probably going to be a bugger to fix.... but anything to keep you busy. :)

thanx

Neo

sstteevvee

02-05-2008 00:02:04

Argh.. Multithread programming.. *runs away*

It'd take a bit of a redesign and careful programming to make it take full advantage of multiple cores. I'll add it near the bottom of my list of things to do, though my list isn't too long so I might actually get around to it one day :)

sstteevvee

02-05-2008 01:01:46

Try the latest version (b23 or later), and let me know how long it takes to process all your stuff now (compared to the 5 minutes it used to take?). I've put some initial effort into speeding up the code that does the work of processing filenames, etc. With a bit of luck, it might only be 1-2 minutes now.

neo_x

08-05-2008 19:57:46

Yup tested last nite.. and shows does open alot faster. thank you very much.

Think it introduced a new bug tho.. :(

Basically i rename all the shows with "The" in front to the showname excluding "the". I added "Incredible hulk, the" last nite using folder monitor, which then added it to my shows list as "The incredible hulk". I then went to manually change the showname, but after changing the name, the showed stayed in exactly the same position on the list. Ie it still appeared with all the shows starting with T.

Is there a way of adding a refresh button in order to resort the shows list? This would be better than sorting every time a show gets changed ( which probably caused the delay in the previous versions)


thank you

sstteevvee

08-05-2008 22:46:15

Ah.. I see.. I'm just forgetting to re-sort the list.

Workaround for now: Click the "Show" column header and it'll re-sort on that column.

The long delay last time was due to a bit of stupid that had got into my code, and I was accidentally sorting the list way too often. If you clicked on the 1000th item, it'd end up sorting the internal list of shows 1000 times (even though it didn't need to be sorted at all), before it figured out it was the 1000th item you had clicked on.

Getting it to sort (once) after adding/editing a show will be easy, and won't slow it down too much. I'll fix it in the next release.

sstteevvee

18-05-2008 18:42:41

Latest release (b25) sorts the shows list after you edit it, so "The Incredible Hulk" should move to the correct location after shortening it to "Incredible Hulk".