Commit 9e07efb
committed
Add @_effects(readnone) to string-based Regex inits
It doesn't seem like regex instantiation is being hoisted out
of loops, which means that both the parsing (which happens at runtime)
and compilation (which happens on first use) are being lost for
string-based and possibly literal regexes. This may address the
issue.1 parent 650b2c1 commit 9e07efb
File tree
2 files changed
+4
-0
lines changed- Sources/_StringProcessing/Regex
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
0 commit comments