aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spgutils.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-09-04 23:14:33 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-09-04 23:14:33 +0300
commit375d8526f2900d0c377f44532f6d09ee06531f67 (patch)
tree866db5b0ff2a176ff815e80ca2a72c780079bee8 /src/backend/access/spgist/spgutils.c
parentcc52d5b33ff5df29de57dcae9322214cfe9c8464 (diff)
downloadpostgresql-375d8526f2900d0c377f44532f6d09ee06531f67.tar.gz
postgresql-375d8526f2900d0c377f44532f6d09ee06531f67.zip
Keep heavily-contended fields in XLogCtlInsert on different cache lines.
Performance testing shows that if the insertpos_lck spinlock and the fields that it protects are on the same cache line with other variables that are frequently accessed, the false sharing can hurt performance a lot. Keep them apart by adding some padding.
Diffstat (limited to 'src/backend/access/spgist/spgutils.c')
0 files changed, 0 insertions, 0 deletions