Commit 958c9a4
committed
Rule 20.12: Improve performance
This commit optimizes the from-where-select clause of this query, which
was highlighted as one of the slowest predicates for our C query suites.
This commit makes the following changes:
* Avoid repetition of `m.getParameter(i)`, which caused a cross product
* Change the way we identify "further expanded macro"
* Modify the isExcluded predicate to reference the macro invocation not
the macro.1 parent 3319523 commit 958c9a4
File tree
1 file changed
+3
-6
lines changed- c/misra/src/rules/RULE-20-12
1 file changed
+3
-6
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | | - | |
39 | | - | |
| 36 | + | |
0 commit comments