Re: inline newNode()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: inline newNode()
Дата
Msg-id 24585.1034222459@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: inline newNode()  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: inline newNode()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
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

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: inline newNode()
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: inline newNode()