I have the legacy app that maintain its own thread pool to do cpu intensive work. It uses NSProcessInfo.processInfo.activeProcessorCount to get number cores and max thread pool size. It worked quite fine for Intel-based Macs but for Apple Silicon Macs it does not make much sense to create more threads than there are high-performance cores.
How do I get the number of high-performance cores on Apple Silicon Macs?
How do I get the number of high-performance cores on Apple Silicon Macs?