Skip site navigation (1) Skip section navigation (2)

pgsql: Slightly reorganize struct SnapshotData.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Slightly reorganize struct SnapshotData.
Date: 2012-01-07 03:59:02
Message-ID: (view raw or whole thread)
Lists: pgsql-committers
Slightly reorganize struct SnapshotData.

This squeezes out a bunch of alignment padding, reducing the size
from 72 to 56 bytes on my machine.  At least in my testing, this
didn't produce any measurable performance improvement, but the space
savings seem like enough justification.

Andres Freund



Modified Files
src/include/utils/snapshot.h |    4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2012-01-07 20:40:03
Subject: pgsql: Use __sync_lock_test_and_set() for spinlocks on ARM,if availabl
Previous:From: Robert HaasDate: 2012-01-07 03:55:46
Subject: pgsql: Fix backwards logic in previous commit.

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group