On Mon, Sep 28, 2009 at 6:16 AM, Dan McGee <dan@archlinux.org> wrote:
In the spirit of Eli making a bunch of patches for the AUR, I finally decided to sit down tonight and figure out why the heck namcap was sucking it up, and did a little code cleanup along the way. namcap.py is now a bit cleaner and separated into functions, and the real treat is namcap is a hell of a lot faster now that I found the bottleneck, which was the depends hook. The first 6 patches in this series lead up to the 7th, which is where the speed increase is found.
Let me know what you see, otherwise it would be cool to get this in and a new namcap release made, as it has rather dramatic effects with regards to speed.
If you don't like patches, you can get all this from my git tree as well: http://code.toofishes.net/cgit/dan/namcap.git/log/?h=working
That sounds pretty cool. Just yesterday, I was complaining to myself that namcap was too slow. I will give this a try :)