Peter Eisentraut <peter_e@gmx.net> writes:
> Can someone explain to me why memset() would ever be better than MemSet()?
memset() should *always* be faster than any C-coded implementation
thereof. Any competent assembly-language writer can beat C-level
locutions, or at least equal them, if he's willing to expend the
effort.
I've frankly been astonished at the number of platforms where it
seems memset() has not been coded with an appropriate degree of
tenseness. The fact that we've found it useful to invent MemSet()
is a pretty damning indictment of the competence of modern C-library
authors.
Or am I just stuck in the obsolete notion that vendors should provide
some amount of platform-specific tuning, and not a generic library?
regards, tom lane