Commit b58afdb
committed
Closes #22540: speed up PyObject_IsInstance and PyObject_IsSubclass in the common case that the second argument has metaclass "type".
1 parent b7a3e84 commit b58afdb
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2538 | 2538 | | |
2539 | 2539 | | |
2540 | 2540 | | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
2541 | 2546 | | |
2542 | 2547 | | |
2543 | 2548 | | |
| |||
2576 | 2581 | | |
2577 | 2582 | | |
2578 | 2583 | | |
| 2584 | + | |
2579 | 2585 | | |
2580 | 2586 | | |
2581 | 2587 | | |
| |||
2603 | 2609 | | |
2604 | 2610 | | |
2605 | 2611 | | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
2606 | 2620 | | |
2607 | 2621 | | |
2608 | 2622 | | |
| |||
2641 | 2655 | | |
2642 | 2656 | | |
2643 | 2657 | | |
| 2658 | + | |
2644 | 2659 | | |
2645 | 2660 | | |
2646 | 2661 | | |
| |||
0 commit comments