]> granicus.if.org Git - postgresql/commitdiff
Again improve MemSet comments.
authorBruce Momjian <bruce@momjian.us>
Tue, 8 Oct 2002 23:12:22 +0000 (23:12 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 8 Oct 2002 23:12:22 +0000 (23:12 +0000)
src/include/c.h

index 8f537860d2efcc79f30f9b9b2ac2ea7630b1a0e7..a51e012dcf0202520e8295f3248c0b9fa97722bf 100644 (file)
@@ -12,7 +12,7 @@
  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: c.h,v 1.127 2002/10/08 19:17:58 momjian Exp $
+ * $Id: c.h,v 1.128 2002/10/08 23:12:22 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -572,10 +572,11 @@ typedef NameData *Name;
  *     Exactly the same as standard library function memset(), but considerably
  *     faster for zeroing small word-aligned structures (such as parsetree nodes).
  *     This has to be a macro because the main point is to avoid function-call
- *     overhead.
+ *     overhead.   However, we have also found that the loop is faster than
+ *     native libc memset() on some platforms, even those with assembler
+ *     memset() functions.  More research needs to be done, perhaps with
+ *     platform-specific MEMSET_LOOP_LIMIT values or tests in configure.
  *
- *     We got the MEMSET_LOOP_LIMIT value by testing this against the libc
- *  memset() on several platforms, some with assembly language versions.
  *     bjm 2002-10-08
  */
 #define MemSet(start, val, len) \