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

How about providing a sorted collection #6359

Open
ss-torres opened this issue Sep 3, 2019 · 1 comment
Open

How about providing a sorted collection #6359

ss-torres opened this issue Sep 3, 2019 · 1 comment

Comments

@ss-torres
Copy link

Sorted set is a sorted collection, but it is double mapped. If we just want a collection that is ordered then the skiplist is enough. The skiplist could describe our purposes more precisely and it is quick and memory optimized also. How about that I add some commands to handle skiplist directly?

@ss-torres
Copy link
Author

If I have a need to collect student information, the need is to collect student name and student score. I could collect student information with two map: <uid, name>, <uid, score>, then I could iterate student names and scores with two commands, rather than O(student number)。

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

1 participant