Re: Faster StrNCpy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Faster StrNCpy
Дата
Msg-id 29984.1159305145@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Faster StrNCpy  (Neil Conway <neilc@samurai.com>)
Ответы Re: Faster StrNCpy  (Josh Berkus <josh@agliodbs.com>)
Re: Faster StrNCpy  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> A wholesale replacement of strncpy() calls is probably worth doing --
> replacing them with strlcpy() if the source string is NUL-terminated,
> and I suppose memcpy() otherwise.

What I'd like to do immediately is put in strlcpy() and hit the two or
three places I think are performance-relevant.  I agree with trying to
get rid of StrNCpy/strncpy calls over the long run, but it's just code
beautification and probably not appropriate for beta.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Faster StrNCpy
Следующее
От: "luis garcia"
Дата:
Сообщение: Constant changes (Re-Build)