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

solana-ibc: refactor TrieKey construction #36

Merged
merged 2 commits into from
Oct 19, 2023
Merged

solana-ibc: refactor TrieKey construction #36

merged 2 commits into from
Oct 19, 2023

Conversation

mina86
Copy link
Collaborator

@mina86 mina86 commented Oct 19, 2023

Rather than having TrieKey as an enum which is then converted to
a vector, change it so that it holds the vector directly and upon
creation the key is generated. This simplifies the usage and avoids
intermediate String allocations.

Rather than having TrieKey as an enum which is then converted to
a vector, change it so that it holds the vector directly and upon
creation the key is generated.  This simplifies the usage and avoids
intermediate String allocations.

Also change a little how keys are constructed.  Rather than using a separator
in the generated paths, prefix variable-length values (namely strings) with
their length.
@mina86 mina86 requested a review from dhruvja October 19, 2023 03:06
@mina86 mina86 enabled auto-merge (rebase) October 19, 2023 13:01
@mina86 mina86 disabled auto-merge October 19, 2023 13:29
@mina86 mina86 enabled auto-merge (squash) October 19, 2023 13:29
@mina86 mina86 merged commit 1e3638a into master Oct 19, 2023
4 checks passed
@mina86 mina86 deleted the mpn/c branch October 19, 2023 13:42
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