JustinGrote / ModuleFast

A "fast and loose" way to install modules from Powershell Gallery quickly. Meant for CICD, not production
Other
74 stars 5 forks source link

Make ThrottleLimit more automatic? #46

Closed johlju closed 7 months ago

johlju commented 7 months ago

Just a thought. It says in the help:

If your system uses HyperThreading and presents more logical cores than physical cores available, you may want to set this to half your number of logical cores for best performance.

Would it be possible to detect if hyper threading is enabled and limit the cores used automatically?

JustinGrote commented 7 months ago

@johlju detecting hyperthreading is complicated and OS-specific, but even if hyperthreading is present, it shouldn't impact performance that much, it just means two decompression threads that are on the same processor will each take half as long (with some minor additional context switching overhead) but ultimately probably complete within 80-90% of the performance of the normal threads, it's a minor performance boost in most scenarios, not a huge one.