Commit b0d94e7
⚡ Bolt: [performance improvement] Optimize string replacement in TestFileNamePattern
Replaces `QUOTE_SEPARATORS_AND_WILDCARDS.matcher(str).replaceAll("")` with chained literal `String.replace` calls.
This provides ~4x performance improvement by avoiding regex compilation and matching overhead for literal replacements.
Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>1 parent ecbff91 commit b0d94e7
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | 144 | | |
147 | 145 | | |
148 | 146 | | |
| |||
554 | 552 | | |
555 | 553 | | |
556 | 554 | | |
557 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
558 | 564 | | |
559 | 565 | | |
560 | 566 | | |
| |||
0 commit comments