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.

@MathieuDutSik MathieuDutSik force-pushed the small_key_value_store_B branch 2 times, most recently from 0d549f1 to 134a3f8 Compare October 14, 2025 12:29
@MathieuDutSik MathieuDutSik force-pushed the small_key_value_store_B branch from b94001d to 83ad3cf Compare October 14, 2025 12:31
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