Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@bettinaheim
Copy link
Contributor

No description provided.

Copy link
Collaborator

@swernli swernli left a comment

Choose a reason for hiding this comment

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

Changes seem good to me. Have we verified that these boundaries don't make the perf of small problems on Windows too much worse than it was before the original improvements get checked in?

@bettinaheim bettinaheim merged commit 29f8ea7 into main Sep 28, 2020
@bettinaheim bettinaheim deleted the beheim/settings branch September 28, 2020 19:40
if (nMaxThrds > 4) nMaxThrds/= 2; // Assume we have hyperthreading (no consistent/concise way to do this)
if (wfnCapacity < 1u << 20) {
if (wfnCapacity < 1ul << 14) nMaxThrds = 1;
else if (wfnCapacity < 1ul << 16) nMaxThrds = 2;
Copy link
Contributor

@rmshaffer rmshaffer Sep 28, 2020

Choose a reason for hiding this comment

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

Minor note: looks like this line would actually increase nMaxThrds from 1 to 2 if running on a single-core CPU? Is that the intent?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, but I haven't seen a 1 CPU machine in a long time. Easy to add the check if desired.

Copy link
Contributor

Choose a reason for hiding this comment

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

Up to you. As you say, this is probably a rare case in practice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants