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: E1RjNQs-0003cF-CN@gemulon.postgresql.org (view raw or flat)
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1fc3d18faa8f4476944bc6854be0f7f6adf4aec8

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-2014 The PostgreSQL Global Development Group