Skip to content

<execution>: cache thread::hardware_concurrency #1134

Description

Currently does not cache hardware_concurrency value, like it used to in certain configurations.

GetNativeSystemInfo may be a system call, so it may defeat the speedup obtained by parallel algorithms.

Consider caching it again.

Note that since number of CPUs may change at runtime, it may be a good idea to refresh the value after some GetTickCount64 interval.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!performanceMust go faster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions