git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a4cd6ab) | patch
Various micro-optimizations for GetSnapshopData().
2011年12月17日 02:44:26 +0000 (21:44 -0500)
2011年12月17日 02:48:47 +0000 (21:48 -0500)
commit 0d76b60db4684d3487223b003833828fe9655fe2
Various micro-optimizations for GetSnapshopData().

Heikki Linnakangas had the idea of rearranging GetSnapshotData to
avoid checking for sub-XIDs when no top-level XID is present. This
patch does that plus further a bit of further, related rearrangement.
Benchmarking show a significant improvement on unlogged tables at
higher concurrency levels, and mostly indifferent result on permanent
tables (which are presumably bottlenecked elsewhere). Most of the
benefit seems to come from using the new NormalTransactionIdPrecedes()
macro rather than the function call TransactionIdPrecedes().
src/backend/storage/ipc/procarray.c diff | blob | blame | history
src/include/access/transam.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /