2014-11-22, 07:59
(2014-11-22, 07:53)exobuzz Wrote: you misunderstood, I replaced regexp parsing with elementtree. the new code is slower and doesn't use regular expressions. The speed is due to the speed of elementtree.
Right. Oh well. Tip to add-on developers - avoid heavy use of Elementree.
(2014-11-22, 07:53)exobuzz Wrote: Python is horribly slow on the pi anyway (pythons fault or just due to resources being used by xbmc ?). If you run a pi, you should also be patient - the original Xbox is far quicker for Python code.
Sure, I'm not under any illusion that the Pi is a speed demon, but when it took 2 seconds in 2.6.6 and now takes 32 seconds in 2.6.7, it's not really the fault of the hardware - ElementTree is clearly a less than ideal solution. Avoiding XML longer term is the best solution.
(By the way, I'm not moaning or ungrateful - many thanks for all your efforts. I'll stick with 2.6.6 for now as it seems to work best for my needs - catchup/live TV).