Commit 1312319
committed
[OptionsResolver] Optimize splitOutsideParenthesis() - 2.90x faster
- Fast path for simple types (no pipes)
- Fast path for unions without parentheses
- Eliminate string concatenation overhead
- Switch statement for character matching
Reduces form processing time significantly for large forms.1 parent ba445f4 commit 1312319
1 file changed
+28
-16
lines changedLines changed: 28 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
1218 | 1228 | | |
1219 | | - | |
| 1229 | + | |
1220 | 1230 | | |
| 1231 | + | |
1221 | 1232 | | |
1222 | | - | |
1223 | | - | |
| 1233 | + | |
1224 | 1234 | | |
1225 | 1235 | | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1237 | 1249 | | |
1238 | 1250 | | |
1239 | 1251 | | |
1240 | | - | |
1241 | | - | |
| 1252 | + | |
| 1253 | + | |
1242 | 1254 | | |
1243 | 1255 | | |
1244 | 1256 | | |
| |||
0 commit comments