Commit c8cf72a
perf(switchMapTo): remove tryCatch/errorObject (~2x improvement)
Before:
| RxJS 4.0.7 | RxJS 5.0.0-beta.1 | factor | % improved
--------------------------------------------------------------------------------------------------
switchmapto-resultselector - immediate | 1,695 (±1.02%) | 12,229 (±1.15%) | 7.21x | 621.3%
switchmapto - immediate | 2,910 (±0.80%) | 32,560 (±0.99%) | 11.19x | 1,018.8%
switchmapto-resultselector | 2,621 (±0.87%) | 12,473 (±0.49%) | 4.76x | 375.9%
switchmapto | 3,300 (±2.11%) | 15,433 (±0.57%) | 4.68x | 367.7%
After:
| RxJS 4.0.7 | RxJS 5.0.0-beta.1 | factor | % improved
--------------------------------------------------------------------------------------------------
switchmapto-resultselector - immediate | 1,645 (±2.07%) | 28,788 (±5.21%) | 17.50x | 1,650.5%
switchmapto - immediate | 3,056 (±0.65%) | 31,656 (±1.17%) | 10.36x | 936.0%
switchmapto-resultselector | 2,793 (±0.54%) | 14,322 (±1.15%) | 5.13x | 412.7%
switchmapto | 3,381 (±4.13%) | 15,969 (±3.86%) | 4.72x | 372.2%1 parent 1abdd10 commit c8cf72a
1 file changed
+15
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 70 | + | |
78 | 71 | | |
79 | 72 | | |
80 | 73 | | |
81 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
82 | 89 | | |
0 commit comments