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

⚡ Slightly optimized BlockMarshaler #3454

Merged

Conversation

greymistcube
Copy link
Contributor

@greymistcube greymistcube commented Oct 12, 2023

I'd say we need to get rid of Dictionary.GetValue<T>() from Bencodex. 🙄

  • Albeit trivial, it's not intuitively clear that its behavior is the same as (T)dict[key].
  • It is longer to type. So it isn't even that convenient to use.
  • It is also missing Dictionary.GetValue<T>(IKey), which should be the base implementation.

The only upside is not having to use additional pair of parentheses in certain cases. 🙄

@greymistcube greymistcube merged commit 559eafd into planetarium:main Oct 16, 2023
@greymistcube greymistcube deleted the refactor/micro-optimization branch January 4, 2024 05:02
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