Preferring MemSet or memset?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Preferring MemSet or memset?
Дата
Msg-id CAB7nPqRT3EBt-GNYz54tSG2Bp=Thg-rztMbGuujU4YT-Acep7Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Preferring MemSet or memset?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi all,

MemSet is an internal macro faster than the system memset for zeroing small word-aligned structures defined in src/include/c.h. Both are being used here and there with no real preference.
An example of that is that in many code paths we have for example nulls and values used to build tuples, that are sometimes initialized with memset, other times with MemSet. Wouldn't we gain a bit of performance by switching to MemSet the initializations of nulls and values currently done with memset?
Opinions?
Regards,
--
Michael

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: tracking commit timestamps
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Preferring MemSet or memset?