When scanning large packages, with a large ignore list, I found a performance improvement in reducing the number of calls to isinstance and str.startswith.
I also think the _ignore function reads better now.
Refactor _ignore function for performance and readability
Any feedback on this? I'd like to get this into the official package rather than maintain my own hacked version.
Sorry, I haven't had time to review this yet. I'm due for a runthrough of Pyramid-related stuff soon; I'm sorry that's the best ETA I can provide.
Finally merged, sorry for the lengthy wait. I changed it slightly.