PathExpr._eval():
Very aggressively cache anything that involves a global lookup. restrictedTraverse(): Only cache things once it's possible we might use them. Use the cached getattr() in one plase where the global was being looked up again. Cache hasattr() as well. Only construct the marker (M) once, not once for each call.
Showing
Please register or sign in to comment