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

Trying to fix the slowdown introduced by #158. #159

Merged
merged 11 commits into from
May 1, 2024
Merged

Conversation

tfpf
Copy link
Owner

@tfpf tfpf commented May 1, 2024

Instead of copying the sieve, construct it in two halves in two threads, then construct the full sieve from them.

@tfpf
Copy link
Owner Author

tfpf commented May 1, 2024

Performance is worse than that of the single-threaded implementation at c80acaf (237.5 µs v/s 212.9 µs).

tfpf added 5 commits May 1, 2024 10:23
Visual Studio Code is responsible for this error. Its merge editor did not do everything correctly.
Its runner has four cores.
@tfpf tfpf marked this pull request as ready for review May 1, 2024 05:54
@tfpf tfpf merged commit 0e3efe3 into main May 1, 2024
2 checks passed
@tfpf tfpf deleted the soa-slodown-tryfix branch May 1, 2024 06:28
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.

1 participant