Обсуждение: pgsql: Improve new caching logic in tbm_add_tuples().

Поиск
Список
Период
Сортировка

pgsql: Improve new caching logic in tbm_add_tuples().

От
Tom Lane
Дата:
Improve new caching logic in tbm_add_tuples().

For no significant extra complexity, we can cache knowledge that the
target page is lossy, and save a hash_search per iteration in that
case as well.  This probably makes little difference, since the extra
rechecks that must occur when pages are lossy are way more expensive
than anything we can save here ... but we might as well do it if we're
going to cache anything.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/779fdcdeeeb9cdbfd271f8dc5bde76ed0c7b0813

Modified Files
--------------
src/backend/nodes/tidbitmap.c |   31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)