回复:RFC:移除 DB_PRIVATE 标志
原始发布页
打开来源页面查看 1 个交叉存档
正在 rev 153 中尝试不使用 DB_PRIVATE 标志。我们需要密切留意有什么不同。
至少在 Windows 上,它会创建六个 __db.001 - __db.006 文件,大小从 24K 到 4MB。退出时不会删除它们,只会把它们留在那里。
文档说它使用内存映射文件。我假定它们与数据库文件有相同的文件权限,因此适用相同的用户访问限制。
在 Windows 私有局域网上下载 78500 个区块的测试: 使用 DB_PRIVATE 20 分 51 秒 不使用 DB_PRIVATE 20 分 51 秒
我没想到结果会完全一样。
英文原文
展开英文原文
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.