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_rusty: Simplify LoadBalancer::populate_tasks_by_load() #445

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

danielocfb
Copy link

Simplify LoadBalancer::populate_tasks_by_load() by cutting out the heap allocation bits, by moving mutable accesses in front of immutable ones. Because multiple immutable accesses (between bss and rodata) do not conflict, we don't need the intermediate PID storage.

Simplify LoadBalancer::populate_tasks_by_load() by cutting out the
heap allocation bits, by moving mutable accesses in front of immutable
ones. Because multiple immutable accesses (between bss and rodata) do
not conflict, we don't need the intermediate PID storage.

Signed-off-by: Daniel Müller <[email protected]>
@danielocfb
Copy link
Author

@Byte-Lab asked privately about this part and whether it can be simplified and the indirection removed. I think it can, but I can't really test it. Take it or leave it. Once #436 lands conflict of this kind should mostly be a thing of the past anyway.

@Byte-Lab Byte-Lab merged commit 367edbc into sched-ext:main Jul 23, 2024
1 check passed
@danielocfb danielocfb deleted the topic/scx-rusty-simplify branch July 23, 2024 22:06
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