Bitcointalk · RFC: remove DB_PRIVATE flag

中本聪,2010 年 9 月 12 日

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

阅读语言
中文译文

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

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

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

Windows 私有局域网下载 78500 个区块的测试: 用 DB_PRIVATE 20 分 51 秒 不用 DB_PRIVATE 20 分 51 秒

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

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

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.

Tests on Windows private LAN download of 78500 blocks:
with DB_PRIVATE     20 minutes 51 seconds
without DB_PRIVATE   20 minutes 51 seconds

I wasn't expecting them to come out exactly the same.
上下文
← 上一条 SN-2605 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2605