Skip to content

Conversation

@anmenaga
Copy link

@anmenaga anmenaga commented May 24, 2024

PR Summary

This removes PowerShell adapter's dependency on PSDesiredStateConfiguration module, therefore making class-based PS resources cross-platform.

There is a number of minor follow-up TODOs in the code that will be filed as issues once this base code is reviewed/approved.

Performance impact: tests showed roughly 50% time improvement over classic Get-DscResource cmdlet; e.g.:

Measure-Command { Get-DscClassResourceDefinitions }
TotalSeconds      : 0.8507316

Measure-Command { Get-DscResource }
TotalSeconds      : 2.1735731

@anmenaga anmenaga requested a review from SteveL-MSFT May 24, 2024 19:18
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue May 30, 2024
Merged via the queue into PowerShell:main with commit c84ee9b May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants