Re: Change GUC hashtable to use simplehash?

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Change GUC hashtable to use simplehash?
Дата
Msg-id d05f536d2ba9a963735d903f5b8faa170ab6fa91.camel@j-davis.com
обсуждение исходный текст
Ответ на Re: Change GUC hashtable to use simplehash?  (John Naylor <johncnaylorls@gmail.com>)
Ответы Re: Change GUC hashtable to use simplehash?
Список pgsql-hackers
On Tue, 2023-11-21 at 16:42 +0700, John Naylor wrote:
> The strlen call required for hashbytes() is not free.

Should we have a hash_string() that's like hash_bytes() but checks for
the NUL terminator itself?

That wouldn't be inlinable, but it would save on the strlen() call. It
might benefit some other callers?

Regards,
    Jeff Davis




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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: simplehash: SH_OPTIMIZE_REPEAT for optimizing repeated lookups of the same key
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Partial aggregates pushdown