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

为什么不把节点objID存数据呢,而是多一个int #2

Closed
weisd opened this issue May 7, 2018 · 1 comment
Closed

为什么不把节点objID存数据呢,而是多一个int #2

weisd opened this issue May 7, 2018 · 1 comment

Comments

@weisd
Copy link

weisd commented May 7, 2018

为什么不把节点objID存数据呢,而是多一个int

@liyiheng
Copy link
Owner

liyiheng commented May 8, 2018

应该是可以直接把数据放到节点上的。现在是节点上只有数据的id跟用于比较的分值,数据统一放到哈希了。当时直接照搬redis的zset,具体实现也没有考虑哪种方式最适合go。
可以来个benchmark,看看哪种方式更好一些。欢迎PR

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