Re: Faster StrNCpy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Faster StrNCpy
Дата
Msg-id 14222.1159819568@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Faster StrNCpy  ("Sergey E. Koposov" <math@sai.msu.ru>)
Ответы Re: Faster StrNCpy  ("Sergey E. Koposov" <math@sai.msu.ru>)
Список pgsql-hackers
"Sergey E. Koposov" <math@sai.msu.ru> writes:
> Just the test on IA64 (Itanium2, 1.6Ghz, 8Gb memory). The results seem to
> be quite different:

What libc are you using exactly?  Can you try it with the unrolled
strlcpy I posted?

In glibc-2.4.90, there seem to be out-of-line assembly code
implementations of strncpy for: sparc64 sparc32 s390x s390 alpha ia64
and an inlined assembler version for i386.  So the x86_64 case is
nearly the only popular architecture that doesn't seem to have
a hand-hacked implementation ... which throws some doubt on Mark's and
my results as possibly not being very representative.
        regards, tom lane


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

Предыдущее
От: "Sergey E. Koposov"
Дата:
Сообщение: Re: Faster StrNCpy
Следующее
От: Bruce Momjian
Дата:
Сообщение: Ready for pgindent?