Commit fde0e98
committed
Auto merge of rust-lang#119599 - marthadev:position, r=the8472
Rewrite Iterator::position default impl
Storing the accumulating value outside the fold in an attempt to improve code generation has shown speedups on various handwritten benchmarks, see discussion at rust-lang#119551.1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3094 | 3094 | | |
3095 | 3095 | | |
3096 | 3096 | | |
3097 | | - | |
3098 | | - | |
3099 | | - | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
3100 | 3101 | | |
3101 | | - | |
3102 | | - | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
3103 | 3109 | | |
3104 | 3110 | | |
3105 | 3111 | | |
3106 | | - | |
| 3112 | + | |
| 3113 | + | |
3107 | 3114 | | |
3108 | 3115 | | |
3109 | 3116 | | |
| |||
0 commit comments