Re: [HACKERS] Preferring MemSet or memset?

2014-11-04 Thread Tom Lane
Michael Paquier writes: > 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 >

[HACKERS] Preferring MemSet or memset?

2014-11-04 Thread Michael Paquier
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 tuple