Commit 0a0cce4
a few optimizations (cppcheck-opensource#162)
* optimized simplecpp::TokenList::lastLine()
reduces Ir from 2722 to 1296 according to callgrind
* optimized simplecpp::Token::flags()
reduces Ir from 198 to 43 according to callgrind1 parent ec4c5e2 commit 0a0cce4
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
0 commit comments