Commit 18af2c9
committed
fixtures: find SubRequest.node eagerly
Currently `SubRequest.node` is a property which finds the node on every
access. This is mildly expensive (need to search up the collection
tree), and is almost guaranteed to be called several times (in `execute`
and `finish`).
Since the node can't change, let's find the node in the ctor once and
save it.1 parent d889ca0 commit 18af2c9
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | | - | |
730 | 729 | | |
731 | 730 | | |
732 | 731 | | |
733 | 732 | | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
| 733 | + | |
745 | 734 | | |
746 | 735 | | |
747 | 736 | | |
| |||
755 | 744 | | |
756 | 745 | | |
757 | 746 | | |
758 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| |||
0 commit comments