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)
commita61aa86cd825c8d3f7a97097e8ea07f41db346a8
treeee8b79dee2c0a64e27234add4621e4c169565585
parent93a276d5ccb4e489262da2d29415e13d01d0976d
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