原始文献 / 论坛帖 / Re: bitcoin generation broken in 0.3.8?

Re: bitcoin generation broken in 0.3.8?

Bitcointalk · 2010-08-09 18:50:41 UTC

AuthorSatoshi Nakamoto
TitleRe: bitcoin generation broken in 0.3.8?
Date2010-08-09 18:50:41 UTC
ForumBitcointalk · 原文

我发现 SSE2 只带来约 2% 的微小提速,似乎不值得为此牺牲兼容性。我想选更稳妥的方案。

在我看来,Crypto++ 不太可能在运行时决定是否用 SSE2。有一处它检测 SSE2 来决定某个区块数参数,但 SSE2 相关的全是编译时的 #ifdef,我看不出它怎么在运行时切换。也许我没找对地方。

我们要在所有 makefile 里启用 SSE2 吗?万一有人用 64 位编译,看来必须启用。

我会重新编译 Linux 0.3.8 发布版中的 64 位部分。

英文原文

I found that SSE2 only added a slight 2% speedup, which didn't seem worth the incompatibility. I was trying to take the safer option.

It doesn't look to me like Crypto++ could be deciding whether to use SSE2 at runtime. There's one place where it detects SSE2 for deciding some block count parameter, but the SSE2 stuff is all #ifdef at compile time and I can't see how that would switch at runtime. Maybe I'm not looking in the right place.

Should we enable SSE2 in all the makefiles? It seems like we must in case someone compiles with 64-bit.

I will recompile the 64-bit part of the Linux 0.3.8 release.