From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru> |
Cc: | mark(at)mark(dot)mielke(dot)cc, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Faster StrNCpy |
Date: | 2006-10-02 20:06:08 |
Message-ID: | 14222.1159819568@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
"Sergey E. Koposov" <math(at)sai(dot)msu(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-10-02 20:09:23 | Ready for pgindent? |
Previous Message | Sergey E. Koposov | 2006-10-02 19:56:03 | Re: Faster StrNCpy |
From | Date | Subject | |
---|---|---|---|
Next Message | Sergey E. Koposov | 2006-10-02 20:18:34 | Re: Faster StrNCpy |
Previous Message | Sergey E. Koposov | 2006-10-02 19:56:03 | Re: Faster StrNCpy |