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