Optimized DRS and SDRS queries in 01 General Info and 17 DRS Migrations (Issue #695).
This brought my vCheck runtime from 103.56 minutes to 44.64 minutes in a vSphere 7.0U3 environment.
General Information runtime from 2111.82 seconds to 13 seconds.
DRS & SDRS Migrations runtime from 1009.88 seconds to <1 second.
Optimized Get-VIEventPlus by swapping from an array to a list for faster inserts. Also added EventCategory parameter as mentioned in Issue #705 along with fixing 23 VI Events to use the EventCategory parameter.
I tested these changes on a vSphere 7.0U3 environment with 59 hosts and 962 VMs.
Optimized DRS and SDRS queries in 01 General Info and 17 DRS Migrations (Issue #695). This brought my vCheck runtime from 103.56 minutes to 44.64 minutes in a vSphere 7.0U3 environment. General Information runtime from 2111.82 seconds to 13 seconds. DRS & SDRS Migrations runtime from 1009.88 seconds to <1 second.
Optimized Get-VIEventPlus by swapping from an array to a list for faster inserts. Also added EventCategory parameter as mentioned in Issue #705 along with fixing 23 VI Events to use the EventCategory parameter.
I tested these changes on a vSphere 7.0U3 environment with 59 hosts and 962 VMs.