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

Don't mutate the readings when calculating statistics #73

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

bens
Copy link
Collaborator

@bens bens commented Apr 11, 2024

There isn't much cost to making a temporary copy of them for sorting, IMHO, and it preserves the link between the readings for each run. It makes the code simpler too in that Statistics.init doesn't need to be called with sorted readings now.

There isn't much cost to making a temporary copy of them for sorting, IMHO, and
it preserves the link between the readings for each run.
@bens bens force-pushed the dont-mutate-readings branch from 2d11187 to fdb2ac5 Compare April 11, 2024 02:08
So `Results` doesn't need to carry one, and then we can use an arena for pretty
printing allocations more easily.
@hendriknielaender
Copy link
Owner

💪 like the adjustments

@hendriknielaender hendriknielaender merged commit 46e5444 into hendriknielaender:main Apr 12, 2024
5 checks passed
@bens bens deleted the dont-mutate-readings branch April 12, 2024 09:36
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