Skip to content

Conversation

MathieuDutSik
Copy link
Contributor

Motivation

The KeyValueStoreView is a scalable solution. But it may be faster to use a BTreeMap based solution that is faster for small cases.

Proposal

We introduce the SmallKeyValueStoreView that uses a RegisterView on a BTreeMap.
However, we cannot use the derive, so we write the SmallKeyValueStoreView directly.

The switch is accessible by using the feature smallkeyvaluestoreview so as to select the small
key-value-store view.

Test Plan

The CI.

More benchmarks are needed. This is only a draft PR so far.

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Links

None.

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.

1 participant