Commit 3f470ca
QRM: optimize folding expr in applySwitchIndex
The original implementetion was translated by GCC to non-optimal
bytecode with O(N) complexity.
The patch fixes the issue and elaborates on the performance
considerations in the code comment.
Pick-to: 6.10
Change-Id: Ic53db8da769afb3c84c428b7198aecd098b0bb3b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>1 parent 4e2639f commit 3f470ca
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
0 commit comments