From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Manfred Koizar <mkoi-pg(at)aon(dot)at> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Static snapshot data |
Date: | 2003-05-10 03:08:38 |
Message-ID: | 3848.1052536118@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Manfred Koizar <mkoi-pg(at)aon(dot)at> writes:
> Up to now, SerializableSnapshot and QuerySnapshot are malloc'ed and
> free'd for every transaction or statement, respectively. This patch
> puts these data structures into static memory, thus saving a few CPU
> cycles and two malloc calls per transaction or (in isolation level
> READ COMMITTED) per query.
I do not like this patch. Two mallocs per transaction is an utterly
insignificant overhead. And isn't the patch going in quite the wrong
direction for nested transactions? The assumption that there's
never more than one QuerySnapshot seems to fly in the face of that...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-05-10 03:50:49 | Beta July 1 |
Previous Message | Tom Lane | 2003-05-10 02:32:48 | Re: rint() replacement |
From | Date | Subject | |
---|---|---|---|
Next Message | alex avriette | 2003-05-12 02:55:46 | patch src/bin/psql/help.c |
Previous Message | Manfred Koizar | 2003-05-09 16:10:18 | Static snapshot data |