Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbaaf8d7

Browse files
committed
Again improve MemSet comments.
1 parent59da96b commitbaaf8d7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎src/include/c.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
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 $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -572,10 +572,11 @@ typedef NameData *Name;
572572
*Exactly the same as standard library function memset(), but considerably
573573
*faster for zeroing small word-aligned structures (such as parsetree nodes).
574574
*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.
576579
*
577-
*We got the MEMSET_LOOP_LIMIT value by testing this against the libc
578-
* memset() on several platforms, some with assembly language versions.
579580
*bjm 2002-10-08
580581
*/
581582
#defineMemSet(start,val,len) \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp