Description: Tales of a computer programmer.
blog = reinterpret_cast<>(life);
As one of the few devs that both likes and is reasonably well-versed in PowerShell I became the point of contact for a colleague that was bemused by a performance oddity when querying the number of cores on a host. He was introducing Ninja into the build and needed to throttle its expectations around how many actual cores there were because hyperthreading was enabled and our compilation intensive build was being slowed by its bad guesswork [1].
The PowerShell query for the number of cores (rather than logical processors) was pulled straight from the Internet and seemed fairly simple: