原始文献 / 论坛帖 / Re: 0.3 almost ready

Re: 0.3 almost ready

Bitcointalk · 2010-06-25 14:10:06 UTC

AuthorSatoshi Nakamoto
TitleRe: 0.3 almost ready
Date2010-06-25 14:10:06 UTC
ForumBitcointalk · 原文

谢谢 virtualcoin,这是个完美的对比。

32 位 Windows(2310k)到 32 位 Linux(2500k)这 8% 的提速,很可能来自 Linux 上更新的 GCC 版本(4.4.3 对 3.4.5)。

32 位 Linux 到 64 位 Linux 这 15% 的提速就比较难解释了。代码完全是 32 位的。

嗯,我想 x86-64 多出的 8 个寄存器应该就是原因。如果能把 16 个状态变量中的大部分放到寄存器里,对 SHA 来说会带来显著的提升。

英文原文

Thanks virtualcoin, that's a perfect comparison.

The 8% speedup from 32-bit Windows (2310k) to 32-bit Linux (2500k) is probably from the newer version of GCC on Linux (4.4.3 vs 3.4.5).

The 15% speedup from 32-bit to 64-bit Linux is more of a mystery.  The code is completely 32-bit.

Hmm, I think the 8 extra registers added by x86-64 must be what's helping.  That would make a significant difference to SHA if it could hold most of the 16 state variables in registers.