Public bug reported: When CommandNotFound.py calls SourcesList is there a lot of information parsed that is never used. Attached is a small patch that will reduce the execution time with ~35-45% depending on hardware. Tested on an i5-2410M and an Atom 330 with natty 64 bit installed.
I used: time /usr/lib/command-not-found cab as a test case. ** Affects: command-not-found (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/823085 Title: command-not-found uses more resources than necessary To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/823085/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs