Skip to content

Improving the perfomance of the coro-prime-sieve algorithm in C# implementation #479

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anc-u
Copy link

@anc-u anc-u commented May 28, 2025

I kept the algorithm as it was, but removed the memory allocation for the utf16 string for the number when writing to the console, and also added synchronous processing where you don't need to wait to write to the channel from another thread, because in C# the channel interface allows you to do this

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