Preferring MemSet or memset? - Mailing list pgsql-hackers

From Michael Paquier
Subject Preferring MemSet or memset?
Date
Msg-id CAB7nPqRT3EBt-GNYz54tSG2Bp=Thg-rztMbGuujU4YT-Acep7Q@mail.gmail.com
Whole thread Raw
Responses Re: Preferring MemSet or memset?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Andres Freund
Date:
Subject: Re: tracking commit timestamps
Next
From: Tom Lane
Date:
Subject: Re: Preferring MemSet or memset?