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

Use ExtractMap instead of HashMap when possible #2797

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

GnomedDev
Copy link
Member

@GnomedDev GnomedDev commented Mar 13, 2024

ExtractMap is HashSet with a Map interface to prevent duplicating the key if it needs to be stored in the value. This swaps serenity to using it which improves memory efficiency and maybe runtime performance while deserialising as only the value needs to be deserialised.

@github-actions github-actions bot added model Related to the `model` module. client Related to the `client` module. cache Related to the `cache`-feature. http Related to the `http` module. utils Related to the `utils` module. labels Mar 13, 2024
@GnomedDev GnomedDev force-pushed the extract-ma branch 3 times, most recently from c8928f1 to 48f5786 Compare March 13, 2024 23:57
@GnomedDev GnomedDev marked this pull request as ready for review March 17, 2024 13:27
@GnomedDev
Copy link
Member Author

Just published extract_map and a typesize compatible version, so ready for review.

@arqunis arqunis added enhancement An improvement to Serenity. breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users dependencies Related to Serenity dependencies. labels Mar 17, 2024
@GnomedDev GnomedDev merged commit 50dc4e6 into serenity-rs:next Mar 17, 2024
21 checks passed
@GnomedDev GnomedDev deleted the extract-ma branch March 17, 2024 23:37
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Mar 19, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Mar 19, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Mar 31, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Apr 1, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request May 14, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Jun 9, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Jun 22, 2024
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Jul 29, 2024
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Jul 30, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Oct 7, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Oct 20, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Nov 11, 2024
GnomedDev added a commit to GnomedDev/serenity that referenced this pull request Nov 15, 2024
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Dec 8, 2024
arqunis pushed a commit to arqunis/serenity that referenced this pull request Jan 16, 2025
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users cache Related to the `cache`-feature. client Related to the `client` module. dependencies Related to Serenity dependencies. enhancement An improvement to Serenity. http Related to the `http` module. model Related to the `model` module. utils Related to the `utils` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants