-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds `keys` and `values` to `StableBTreeMap` bringing it more in line with the std `BTreeMap`. It also adds `keys_range` and `values_range` which aren't exposed by the std `BTreeMap`, with the std map these aren't really needed because the keys and values are returned by reference, so it is still efficient to use `range` and then `map` to get the keys or the values. But with the `StableBTreeMap` using the same approach would result in reading and deserializing the keys and values, only to throw one set of them away.
- Loading branch information
Showing
5 changed files
with
431 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.