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

Normalize the extentions inside of config in-place #110

Merged
merged 1 commit into from
Jan 14, 2023

Conversation

Kolaer
Copy link
Collaborator

@Kolaer Kolaer commented Jan 11, 2023

  • Rename update_extentions to Normalize_extentions as it better conveys the intent;
  • Remove the unnecessary copy of the extensions vector;
  • Remove the unnecessary copy of the RustusConf object;

By the way, is there any reason for the extensions to be sorted? I couldn't find any mention of that in the specification. I'd argue that it's better to drop this requirement if there's no reason for it and switch to HashSet instead of Vec. If it's required for any other reason, we can still switch to BTreeSet.

* Rename `update_extentions` to `Normalize_extentions` as it better conveys the intent;
* Remove the unnecessary copy of the extensions vector;
* Remove the unnecessary copy of the `RustusConf` object;
@s3rius s3rius merged commit 77fdc6e into develop Jan 14, 2023
@s3rius s3rius deleted the feature/optimize-config branch January 14, 2023 17:49
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.

None yet

2 participants