insomniacc / PSSnow

A powershell module for interacting with the ServiceNow REST API
GNU General Public License v3.0
41 stars 9 forks source link

Invoke-SNOWBatch should support core native -paralllel #41

Closed insomniacc closed 1 year ago

insomniacc commented 1 year ago

-Parallel currently uses invoke-parallel for both 5.1 and core but might be best if the native core method is utilized where it can be.

insomniacc commented 1 year ago

After testing the performance of Invoke-Parallel vs Foreach-Object -Parallel, Foreach is taking over 3 times longer interestingly. Therefore rather than add additional code and make this more complex I'll leave this as is and only use invoke-parallel on core.