I still have to verify this with actual benchmarking but one place that looks like it will benefit from optimising is here:
softwarecenter.performance - DEBUG - cat_parser.parse_applications_menu(): 1.73268795013 The code called is in /softwarecenter/db/categories.py and from a quick scan over the code its possible that the _parse_menu_tag method (and the various other parsing methods it calls) are causing performance issues. There is quite a lot of if else statements inside loops to read the xml elements and also some recursive calls inside those loops. As lmxl is being used to read the xml file and it is actually a C library wrapper my assumption is it would be better to use xpath calls to read/checkfor the xml elements rather than looping through the xml elements. Anyway I might not get to check this for a while so posting this for anyone else that is interested, it should be a fairly easy programming task if this is in fact what it taking a long time to execute. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/845579 Title: software-center terribly slow, ubuntu freezing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/845579/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
