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

[WIP] Reduce alignment requirements on 64-bit systems.

From: "Ryan Bradetich" <rbradetich(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [WIP] Reduce alignment requirements on 64-bit systems.
Date: 2008-10-09 05:39:00
Message-ID: e739902b0810082239q4de7ff2al4faee76d68715e41@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hello all,

Here is a proof-of-concept patch for reducing the alignment
requirement for heap tuples on 64-bit systems.
This patch passes the regression tests and a couple of other data sets
I have thrown at it.

I am hoping to get some early feedback on this patch so I have time to
make any corrections, improvements,
etc before the November commit-fest deadline.

There are two visible savings in the system catalogs using this patch
(size was gathered using \S+):

Catalog              Pre-Patch Size      After Patch Size

pg_depend         312 kB                  296 kB
pg_description    160 kB                  152 kB


One thing I am considering, but I am not sure if it is worth the code
uglification, is to wrap the majority of these
checks in #ifdefs so they only are used on 64-bit systems.   This
would completely eliminate the impact for this
patch on 32-bit systems, which would not gain any benefit from this patch.

Feedback welcome!

Thanks,

- Ryan

Attachment: heap-tuple-v1.0.patch
Description: application/x-download (9.0 KB)

Responses

pgsql-hackers by date

Next:From: David FetterDate: 2008-10-09 05:50:39
Subject: Re: WITH RECURSIVE ... simplified syntax?
Previous:From: Tom LaneDate: 2008-10-09 04:55:01
Subject: Re: [WIP] plpgsql is not translate-aware

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