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

Actually fix IJobParallelFor #35

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

LilithSilver
Copy link
Collaborator

Turns out the issue was a simple one: The big performance discrepancies I was seeing was due to an extra CAS operation in the work stealing algorithm. It now works on the level of C#'s inbuilt Parallel.For, and is faster than the naive solution in non-ideal cases (the naive solution is still sliiiiiightly faster in ideal circumstances due to less overhead but not appreciably).

This repo also adds documentation to README.md and fixes #30 by documenting amount.

Copy link
Owner

@genaray genaray left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! :)

@genaray genaray merged commit 399e77c into genaray:master Feb 20, 2024
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.

Undocumented value "amount" in Scheduler.Schedule
2 participants