forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4c37c1e
committed
Reduce the initial size of local lock hash to 16 entries.
The hash table is seq scanned at transaction end, to release all locks,and making the hash table larger than necessary makes that slower. Withvery simple queries, that overhead can amount to a few percent of the totalCPU time used.At the moment, backend startup needs 6 locks, and a simple query with onetable and index needs 3 locks. 16 is enough for even quite complicatedtransactions, and it will grow automatically if it fills up.1 parentf536d41 commit4c37c1e
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
349 |
| - | |
| 349 | + | |
350 | 350 |
| |
351 | 351 |
| |
352 | 352 |
| |
|
0 commit comments
Comments
(0)