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

scx_lavd: revise FlatTopology prettier #507

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

multics69
Copy link
Contributor

The changes include 1) chopping down a big function into smaller ones for readability and maintainability and 2) using the interior mutability pattern (Cell and RefCell) to avoid unnecessary clone() calls. There are no functional changes.

The changes include 1) chopping down a big function into smaller ones
for readability and maintainability and 2) using the interior mutability
pattern (Cell and RefCell) to avoid unnecessary clone() calls.  There
are no functional changes.

Signed-off-by: Changwoo Min <[email protected]>
}
for (from_k, _) in keys1.iter() {
for (to_k, to_v) in keys2.iter() {
for (from_k, from_v) in cpdom_map.iter() {
Copy link
Contributor

Choose a reason for hiding this comment

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

for the nested loops do you think something like itertools::iproduct could be useful?

Copy link
Contributor Author

@multics69 multics69 Aug 20, 2024

Choose a reason for hiding this comment

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

Thanks for the suggestion @hodgesds! I will check iproduct.

@multics69 multics69 merged commit 2c4c2a0 into sched-ext:main Aug 20, 2024
1 check passed
@multics69 multics69 deleted the lavd-pretty-rust branch August 20, 2024 00:01
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.

3 participants