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

docs(services/memory): Fix wrong explanation #2002

Merged
merged 1 commit into from
Apr 15, 2023
Merged

docs(services/memory): Fix wrong explanation #2002

merged 1 commit into from
Apr 15, 2023

Conversation

silver-ymz
Copy link
Member

As seen in https://github.com/apache/incubator-opendal/blob/aa8b9e52801947c1799a5efa7107c14e94ec300a/core/src/services/memory/backend.rs#L80 It is implemented based on BTreeMap, rather than HashMap.

And Most key values are paths. Will it become better to use TrieTreeMap?

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Xuanwo
Copy link
Member

Xuanwo commented Apr 15, 2023

And Most key values are paths. Will it become better to use TrieTreeMap?

Thanks for ideas.

memory is required to only use std's collection fro easier testing, and performance is not the first thing.

@Xuanwo Xuanwo merged commit 3cf5498 into apache:main Apr 15, 2023
@silver-ymz silver-ymz deleted the fix-memory-doc branch April 15, 2023 04:27
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

Successfully merging this pull request may close these issues.

2 participants