Repository navigation
Commit ece341c
committed
Make MSVC generate somewhat faster switch code
Apparently a switch on an 8-bit quantity where all cases are
present generates a more efficient jump (doing only one indexed
memory load instead of two).
See faster-cpython/ideas#321 (comment)1 parent b6d5e3c commit ece341c
3 files changed
Lines changed: 89 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1774 | 1774 | | |
1775 | 1775 | | |
1776 | 1776 | | |
1777 | | - | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1778 | 1780 | | |
1779 | 1781 | | |
1780 | 1782 | | |
| |||
5645 | 5647 | | |
5646 | 5648 | | |
5647 | 5649 | | |
5648 | | - | |
| 5650 | + | |
5649 | 5651 | | |
5650 | 5652 | | |
5651 | 5653 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
| |||
0 commit comments