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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f3f45c8) | patch
Speed up AllocSetFreeIndex, which is a significant cost in palloc and pfree,
2009年7月21日 19:53:12 +0000 (19:53 +0000)
2009年7月21日 19:53:12 +0000 (19:53 +0000)
commit ab5b4e2f9ede250bd77d09aa8ec60bfeb982fb01
Speed up AllocSetFreeIndex, which is a significant cost in palloc and pfree,
by using a lookup table instead of a naive shift-and-count loop. Based on
code originally posted by Sean Eron Anderson at
http://graphics.stanford.edu/%7eseander/bithacks.html.
Greg Stark did the research and benchmarking to show that this is what
we should use. Jeremy Kerr first noticed that this is a hotspot that
could be optimized, though we ended up not using his suggestion of
platform-specific bit-searching code.
src/backend/utils/mmgr/aset.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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