perf(propagate): don't increase the stack when there is only one subscriber #7
+34
−22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Benchmark Results
main branch
1.59 µs/iter
1.56 µs
1.61 µs
1.65 µs
1.67 µs
14.32 µs/iter
14.23 µs
14.34 µs
14.40 µs
14.47 µs
139.54 µs/iter
136.83 µs
138.00 µs
182.58 µs
307.58 µs
8.61 µs/iter
8.59 µs
8.62 µs
8.63 µs
8.63 µs
84.50 µs/iter
82.92 µs
83.58 µs
109.29 µs
249.54 µs
843.57 µs/iter
831.71 µs
837.38 µs
983.25 µs
995.58 µs
77.82 µs/iter
76.08 µs
76.96 µs
102.38 µs
241.33 µs
767.59 µs/iter
754.83 µs
761.71 µs
913.63 µs
938.08 µs
7.67 ms/iter
7.57 ms
7.73 ms
7.80 ms
7.80 ms
This PR
1.52 µs/iter
1.50 µs
1.54 µs
1.55 µs
1.56 µs
13.89 µs/iter
13.86 µs
13.91 µs
13.92 µs
13.92 µs
137.14 µs/iter
134.75 µs
135.92 µs
174.79 µs
296.29 µs
8.07 µs/iter
8.06 µs
8.07 µs
8.08 µs
8.09 µs
79.17 µs/iter
77.79 µs
78.42 µs
90.38 µs
231.33 µs
786.38 µs/iter
775.50 µs
781.67 µs
926.71 µs
951.96 µs
72.09 µs/iter
70.67 µs
71.46 µs
82.42 µs
244.08 µs
717.08 µs/iter
706.29 µs
712.83 µs
861.29 µs
888.17 µs
7.15 ms/iter
7.07 ms
7.21 ms
7.25 ms
7.26 ms