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

Fix memory based on PR "less event data" #2407

Merged

Conversation

thorstenhater
Copy link
Contributor

No description provided.

boeschf
boeschf previously approved these changes Sep 18, 2024
Copy link
Contributor

@boeschf boeschf left a comment

Choose a reason for hiding this comment

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

looks good! thanks for refactoring test_probe. Only minor things, feel free to merge.

for (auto& lane: lanes) {
auto div = divs[cell];
for (const auto& lane: lanes) {
const auto div = divs[cell];
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const auto div = divs[cell];
auto div = divs[cell];

no need for const (not wrong but adds noise imo)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that was fishing for an issue that wasn't there. Agreed on the principle that const values
are mostly noise.

Comment on lines 89 to 91
const auto time = evt.time;
const auto weight = evt.weight;
const auto target = evt.target;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const auto time = evt.time;
const auto weight = evt.weight;
const auto target = evt.target;
auto time = evt.time;
auto weight = evt.weight;
auto target = evt.target;

same here

@thorstenhater thorstenhater marked this pull request as ready for review September 18, 2024 18:26
@thorstenhater thorstenhater merged commit 502f385 into arbor-sim:master Sep 19, 2024
28 of 29 checks passed
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