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
|
| Список | 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 по дате отправления: