Commit 61ee92d
Pre-compile ZipFilterAction regex
String.match() compiles the regex on every single invocation. This is not desirable in the inner loop. We can save on regex re-compilation by pre-compiling outside of the nested loop.
PiperOrigin-RevId: 746029685
Change-Id: I8d4001a83804dc6f4493598fd61fe60e011ff08b1 parent 8fdc00f commit 61ee92d
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
205 | | - | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| |||
0 commit comments