In this chapter, we will explore runspaces and parallel processing in order to be able to eke every last bit of performance out of their scripts. We will also explore the performance penalty when calling cmdlets versus .NET methods.
In this chapter, we will cover the following recipes:
- Parallelization with background jobs
- Efficiently querying the event log
- Comparing Where-Object and Where methods
- Using Active Directory cmdlets with performance in mind
- Parallelization through RunspacePools
- Exchanging variables with runspaces
- Large-scale I/O operations
- Hashtables, dictionaries, and performance