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

Update to cosmwasm 2.0.0-beta.0 #487

Merged
merged 4 commits into from
Jan 4, 2024
Merged

Update to cosmwasm 2.0.0-beta.0 #487

merged 4 commits into from
Jan 4, 2024

Conversation

chipshort
Copy link
Collaborator

@chipshort chipshort commented Dec 21, 2023

Step 1 of #490

libwasmvm/src/cache.rs Outdated Show resolved Hide resolved
libwasmvm/src/cache.rs Outdated Show resolved Hide resolved
@webmaster128 webmaster128 mentioned this pull request Jan 4, 2024
10 tasks
///
/// The order of the output elements is determined by the iteration order of the provided set.
fn set_to_csv(set: BTreeSet<impl AsRef<str>>) -> String {
let list: Vec<&str> = set.iter().map(|e| e.as_ref()).collect();
list.join(",")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record, it seems like the intermediate vector can be avoided by using join from itertools. But since this is not on a hot path, we don't add the dependency for now.
https://stackoverflow.com/a/76223103/2013738

Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I created #490 to break the whole topic down into small steps and get this merged.

@webmaster128 webmaster128 merged commit 384ddff into main Jan 4, 2024
13 checks passed
@webmaster128 webmaster128 deleted the 2.0.0-beta.0-release branch January 4, 2024 15:50
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