memory layouts for binary search in nbtree

Поиск
Список
Период
Сортировка
От Andres Freund
Тема memory layouts for binary search in nbtree
Дата
Msg-id 20160518132537.grcicnutjbl2iwpe@alap3.anarazel.de
обсуждение исходный текст
Ответы Re: memory layouts for binary search in nbtree  (Simon Riggs <simon@2ndQuadrant.com>)
Re: memory layouts for binary search in nbtree  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
Hi,

currently we IIRC use linearly sorted datums for the search in
individual btree nodes.  Not surprisingly that's often one of the
dominant entries in profiles. We could probably improve upon that by
using an order more optimized for efficient binary search.

See e.g.  http://cglab.ca/~morin/misc/arraylayout/ for benchmarks
showing benefits.

Andres



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Reviewing freeze map code
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Reviewing freeze map code