Bitcointalk

RFC: remove DB_PRIVATE flag

中本聪 · 2010 年 9 月 12 日

SN-2605 已核对来源,附原文与上下文。

阅读语言

在 rev 153 里试着去掉了 DB_PRIVATE。我们得留意有什么不同。

Trying it without the DB_PRIVATE flag in rev 153. We need to keep an eye on what's different.

至少在 Windows 上,它会创建 __db.001 到 __db.006 六个文件,大小从 24K 到 4MB。退出时不删除它们,就那么留在原地。

On Windows at least, it creates six __db.001 - __db.006 files with sizes from 24K to 4MB. It doesn't delete them on exit, it just leaves them behind.

文档说它使用内存映射文件。我猜它们与数据库文件有同样的文件权限,所以同样的用户访问限制也适用。

The docs say it uses memory mapped files. I assume they have the same file permissions as the database files, so the same user access restrictions apply.

Windows 私有局域网下载 78500 个区块的测试:

Tests on Windows private LAN download of 78500 blocks:

用 DB_PRIVATE 20 分 51 秒

with DB_PRIVATE 20 minutes 51 seconds

不用 DB_PRIVATE 20 分 51 秒

without DB_PRIVATE 20 minutes 51 seconds

我没料到两者会完全一样。

I wasn't expecting them to come out exactly the same.

上下文
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2605

阅读字号

选择适合你的字号,之后阅读会继续使用。