Re: some aspects of our qsort might not be ideal

Поиск
Список
Период
Сортировка
От John Naylor
Тема Re: some aspects of our qsort might not be ideal
Дата
Msg-id CAFBsxsHAU-1S7Ltx0XjvXOys4WhYUbh0NOfqH95ZGe2o+wJwSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: some aspects of our qsort might not be ideal  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: some aspects of our qsort might not be ideal  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
On Fri, Jun 3, 2022 at 10:44 AM Peter Geoghegan <pg@bowt.ie> wrote:
>
> What about dual-pivot quicksort, which is used in Java 7+? That is the
> defacto successor to Bentley & McIlroy. In fact, Jon Bentley himself
> collaborated with its author, and provided benchmarking input. The
> underlying philosophy is essentially the same as the original -- it
> is supposed to be an "industrial strength" quicksort, with various
> adversarial cases considered directly.

I had heard of it but not looked into it deeply. I did read that Java
7 uses dual pivot quicksort for primitives and timsort for objects. I
wasn't sure if dual pivot was not good for objects (which could have
possibly-complex comparators) or if timsort was just simply good for
Java's use cases. It seems accessible to try doing, so I'll look into
that.

-- 
John Naylor
EDB: http://www.enterprisedb.com



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

Предыдущее
От: John Naylor
Дата:
Сообщение: Re: PG15 beta1 sort performance regression due to Generation context change
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: some aspects of our qsort might not be ideal