Commit c135a89
committed
[OptionsResolver] Optimize splitOutsideParenthesis() - 2.91x 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 edae79d commit c135a89
1 file changed
+26
-16
lines changedLines changed: 26 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 | + | |
1218 | 1226 | | |
1219 | | - | |
| 1227 | + | |
1220 | 1228 | | |
| 1229 | + | |
1221 | 1230 | | |
1222 | | - | |
1223 | | - | |
| 1231 | + | |
1224 | 1232 | | |
1225 | 1233 | | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
1237 | 1247 | | |
1238 | 1248 | | |
1239 | 1249 | | |
1240 | | - | |
1241 | | - | |
| 1250 | + | |
| 1251 | + | |
1242 | 1252 | | |
1243 | 1253 | | |
1244 | 1254 | | |
| |||
0 commit comments