postgresql/src/backend/storage
Heikki Linnakangas 4c37c1e3b2 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. With
very simple queries, that overhead can amount to a few percent of the total
CPU time used.

At the moment, backend startup needs 6 locks, and a simple query with one
table and index needs 3 locks. 16 is enough for even quite complicated
transactions, and it will grow automatically if it fills up.
2011-04-15 15:07:36 +03:00
..
buffer pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
file pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
freespace Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
ipc Clean up most -Wunused-but-set-variable warnings from gcc 4.6 2011-04-11 22:28:45 +03:00
large_object pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
lmgr Reduce the initial size of local lock hash to 16 entries. 2011-04-15 15:07:36 +03:00
page Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
smgr Clean up most -Wunused-but-set-variable warnings from gcc 4.6 2011-04-11 22:28:45 +03:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00