Avoid checking types of Callable when both type objects are pointing to the same reference. This is a small check which would speed up cases drastically such as recursive generics with unions, since the type is equal but Pytype holds the expanded union type and attempts to go in deep to figure out each individual type matches. #2337
Job | Run time |
---|---|
24m 22s | |
5m 15s | |
21m 2s | |
9m 50s | |
29m 8s | |
10m 26s | |
4m 51s | |
9m 4s | |
10m 46s | |
5m 40s | |
9m 52s | |
11m 31s | |
3m 7s | |
5m 33s | |
5m 33s | |
10m 36s | |
19m 8s | |
22m 59s | |
3h 38m 43s |