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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0ff7a2c) | patch
Minor speed hacks in AllocSetReset: avoid clearing the freelist headers
2005年5月14日 20:29:13 +0000 (20:29 +0000)
2005年5月14日 20:29:13 +0000 (20:29 +0000)
commit 05b4293bd82035b22d673da90e64eae38beb4ceb
Minor speed hacks in AllocSetReset: avoid clearing the freelist headers
when the blocks list is empty (there can surely be no freelist items if
the context contains no memory), and use MemSetAligned not MemSet to
clear the headers (we assume alignof(pointer) >= alignof(int32)).
Per discussion with Atsushi Ogawa. He proposes some further hacking
that I'm not yet sold on, but these two changes are unconditional wins
since there is no case in which they make things slower.
src/backend/utils/mmgr/aset.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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