Commit 2dcf42f
committed
Parser: rewrite the iterate_string_chunks function with new chunk code
The new get_string_chunk function allows us to merge the chunked and
non-chunked versions into one single code path. Not only will this share
code with the chunk functions (if the user is using them), there is an
actual reduction in code size after this change.
Before, the function was 0x1d8 bytes in size on x86-64 (-march=skylake)
and 0x17b bytes for x86 (-march=silvermont -miamcu). After, the
combination of the the new iteration function and get_string_chunk is,
respectively, 0x193 and 0x157 bytes, a reduction of 69 and 36 bytes.
Signed-off-by: Thiago Macieira <[email protected]>1 parent 51b5606 commit 2dcf42f
1 file changed
+22
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
1107 | | - | |
1108 | 1107 | | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1142 | 1111 | | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1146 | 1116 | | |
1147 | | - | |
1148 | | - | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1149 | 1125 | | |
1150 | | - | |
1151 | | - | |
| 1126 | + | |
| 1127 | + | |
1152 | 1128 | | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1157 | 1133 | | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
| 1134 | + | |
1161 | 1135 | | |
1162 | 1136 | | |
1163 | 1137 | | |
| |||
1166 | 1140 | | |
1167 | 1141 | | |
1168 | 1142 | | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
1175 | 1143 | | |
1176 | 1144 | | |
1177 | 1145 | | |
| |||
0 commit comments