forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4604f83
committed
Suppress unnecessary regex subre nodes in a couple more cases.
This extends the changes made in commitcebc1d3, teachingparseqatom() to generate fewer or cheaper subre nodes in some edgecases. The case of interest here is a quantified atom that is "messy"only because it has greediness opposite to what preceded it (whereascaptures and backrefs are intrinsically messy). In this case we don'tneed an iteration node, since we don't care where the sub-matches ofthe quantifier are; and we might also not need a second concatenationnode. This seems of only marginal real-world use according to mytesting, but I wanted to get it in before wrapping up this series ofregex performance fixes.Discussion:https://postgr.es/m/1340281.1613018383@sss.pgh.pa.us1 parent0c3405c commit4604f83
1 file changed
+39
-0
lines changedLines changed: 39 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1216 | 1216 |
| |
1217 | 1217 |
| |
1218 | 1218 |
| |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1219 | 1236 |
| |
1220 | 1237 |
| |
1221 | 1238 |
| |
| |||
1271 | 1288 |
| |
1272 | 1289 |
| |
1273 | 1290 |
| |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
1274 | 1295 |
| |
1275 | 1296 |
| |
1276 | 1297 |
| |
| |||
1291 | 1312 |
| |
1292 | 1313 |
| |
1293 | 1314 |
| |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1294 | 1333 |
| |
1295 | 1334 |
| |
1296 | 1335 |
| |
|
0 commit comments
Comments
(0)