Skip to content

Add initial multi-thread support#74

Merged
msoos merged 22 commits intomasterfrom
add-threads
Nov 29, 2025
Merged

Add initial multi-thread support#74
msoos merged 22 commits intomasterfrom
add-threads

Conversation

@msoos
Copy link
Copy Markdown
Collaborator

@msoos msoos commented Nov 26, 2025

Not amazing, but it does work, and results are correct. This:

time ./ganak --bitsthreads 6 ~/media/counting/mccomp2023/mc2023-track3-pmc/mc2023_track3_085.cnf.gz

Is 125s real-time (and about 200% CPU usage), whereas with single-thread it's 177s. So we made some progress.

Actually, I can go down to 100s with 2**8 threads -- most finish early so in the end we only use 328% CPU.

@msoos
Copy link
Copy Markdown
Collaborator Author

msoos commented Nov 28, 2025

OK, it's now down to 78s and 654% usage.

@msoos msoos changed the title Add multi-thread support Add initial multi-thread support Nov 29, 2025
@msoos msoos merged commit 11ae741 into master Nov 29, 2025
9 checks passed
@msoos msoos deleted the add-threads branch November 29, 2025 17:59
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