-
Notifications
You must be signed in to change notification settings - Fork 373
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
Raise default number of workers #1288
Conversation
getNFuzzWorkers conf = fromIntegral (fromMaybe 1 (conf.workers)) | ||
getNFuzzWorkers conf = maybe defaultN fromIntegral conf.workers | ||
where | ||
n = numCapabilities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it the same as getNumCapabilities
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but this is "pure", getNumCapabilities
is IO
lib/Echidna/Types/Campaign.hs
Outdated
where | ||
n = numCapabilities | ||
maxN = max 1 (n - 1) -- one dedicated thread for shrinking | ||
defaultN = min 3 maxN -- capped at 3 by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we cap at 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ggrieco-tob suggested the value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a reasonable number for default, we can increase if we want later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched it to 4, considering I dropped the -1
Does this close #1252 |
Now the default number of workers will be equal to the number of cores on the system, with a minimum of 1 and a maximum of 4.
d514836
to
28575e5
Compare
Now the default number of workers will be equal to the number of cores on the system, with a minimum of 1 and a maximum of 4.