- Notifications
You must be signed in to change notification settings - Fork5
Commit3793310
committed
Fix performance bug in write_syslog(): the code to preferentially break the
log message at newlines cost O(N^2) for very long messages with few or nonewlines. For messages in the megabyte range this became the dominant cost.Per gripe from Achilleas Mantzios.Patch all the way back, since this is a safe change with no portabilityrisks. I am also thinking of increasing PG_SYSLOG_LIMIT, but that shouldbe done separately.1 parentcac2f69 commit3793310
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
| 45 | + | |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| |||
1306 | 1306 |
| |
1307 | 1307 |
| |
1308 | 1308 |
| |
| 1309 | + | |
1309 | 1310 |
| |
1310 | 1311 |
| |
1311 | 1312 |
| |
| |||
1328 | 1329 |
| |
1329 | 1330 |
| |
1330 | 1331 |
| |
1331 |
| - | |
| 1332 | + | |
1332 | 1333 |
| |
1333 | 1334 |
| |
1334 |
| - | |
| 1335 | + | |
| 1336 | + | |
1335 | 1337 |
| |
1336 | 1338 |
| |
1337 | 1339 |
| |
1338 | 1340 |
| |
1339 | 1341 |
| |
1340 | 1342 |
| |
1341 |
| - | |
1342 | 1343 |
| |
1343 | 1344 |
| |
1344 | 1345 |
| |
| |||
1347 | 1348 |
| |
1348 | 1349 |
| |
1349 | 1350 |
| |
| 1351 | + | |
| 1352 | + | |
1350 | 1353 |
| |
1351 | 1354 |
| |
1352 | 1355 |
| |
1353 | 1356 |
| |
1354 |
| - | |
1355 | 1357 |
| |
1356 | 1358 |
| |
1357 | 1359 |
| |
|
0 commit comments
Comments
(0)