-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: BTreeMap V2 (beta) #115
Merged
Merged
Conversation
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
Hi @ielashi, I'm not sure but, is it possible that the init of a new `BTreeMap::new` in `init_v2` is incorrect in your PR and should be replaced with `BTreeMap::new_v2`? At least, while testing your PR, I was facing following error which seems to be resolved by tweaking those. > 2023-08-26 14:42:36.677876 UTC: [Canister by6od-j4aaa-aaaaa-qaadq-cai] Panicked at 'Cannot get max size of unbounded type.', /Users/daviddalbusco/.cargo/git/checkouts/stable-structures-10185dfe005f3b12/8620b4f/src/storable.rs:450:9
@dragoljub-duric Thanks for your comments. Tip (for this and future PRs): I'd suggest not blocking the approval of the PR with your comments, since the comments are not related to this particular change. Your comments relate to the existing tests, which the current PR doesn't modify. I'll address your comments, but I wouldn't block approving the PR on them. |
dragoljub-duric
approved these changes
Sep 4, 2023
…es into ielashi/btree_v2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces V2 of BTreeMap which supports unbounded keys and values.
init_v2
ornew_v2
. In the future, V1 maps will be migrated automatically to V2.