PowerShell Generic List .Where() performance with variable expansion from higher scope
Given a hashtable called $derivedValues
, and a variable that requires variable expansion, I am seeing some interesting performance issues.
Given:
Powershell closure for .Where() in a string variable
I have a Generic List of hash tables derived from Uninstall keys in the registry, which I need to search. Each list member is an ordered dictionary containing these keys. The actual value of each key is defined separately since some are values direct from the registry and some are calculated.