OSDN Git Service

Use MemSet() rather than a loop to do blank-padding on PS_USE_CLOBBER_ARGV
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Dec 2001 15:22:09 +0000 (15:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Dec 2001 15:22:09 +0000 (15:22 +0000)
commit12d17deb4f34833a49d8c3f465668249b37d83bc
tree01a94c3c6a2cf5e9360652315a75a1382979d534
parentdb667614ef90a3f758f81f9fe48c3e12ad671805
Use MemSet() rather than a loop to do blank-padding on PS_USE_CLOBBER_ARGV
machines.  I have just been observing some scenarios where set_ps_display
accounts for more than 10% of the backend CPU, and this loop has to be
the reason.
src/backend/utils/misc/ps_status.c