Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更廉价的内存替代方案 #9

Open
secp256 opened this issue Dec 29, 2018 · 2 comments
Open

更廉价的内存替代方案 #9

secp256 opened this issue Dec 29, 2018 · 2 comments

Comments

@secp256
Copy link
Contributor

secp256 commented Dec 29, 2018

智能合约的持久化存储,目前是放内存的。对交易所和中心化钱包来说,这部分内存占用不是必需的,中心化钱包只关心充值和提现。
如果能将这部分内存占用,用更廉价的存储来替代,可以节省他们的硬件成本。

大家来讨论?

@kilmas
Copy link

kilmas commented Dec 29, 2018

智能合约可以放外存吗?状态数据库本身是放外存。
其实暂时不太需要考虑这部分费用。暂时合约的数量有限。后续应该是有社区的开发者搞订制的api服务。

@secp256
Copy link
Contributor Author

secp256 commented Dec 29, 2018

智能合约可以放外存吗?状态数据库本身是放外存。
其实暂时不太需要考虑这部分费用。暂时合约的数量有限。后续应该是有社区的开发者搞订制的api服务。

智能合约调用产生的持久化存储表,目前是放节点内存,以object的形式存储的。这部分数据,在智能合约被调用时,会被读写,目前还没有放外存的方案。

廉价的内存替换方案,目前也不是重要和紧急的。未来可能会有这样的需求,比如当32GB内存跑满的时候

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants