Skip to content

Performance enhancements for Get-UnitySetupInstance - #228

Merged
Josh Wittner (jwittner) merged 1 commit into
microsoft:developfrom
jwittner:dev/improveSetupSearchSpeed
Jul 7, 2021
Merged

Performance enhancements for Get-UnitySetupInstance#228
Josh Wittner (jwittner) merged 1 commit into
microsoft:developfrom
jwittner:dev/improveSetupSearchSpeed

Conversation

@jwittner

Copy link
Copy Markdown
Member

This improves search speed ~33% generally for newer versions of unity by actually stopping the pipeline after finding the first version match in header files.

It improves search speed ~95% for newer versions of Unity on Windows where a known header file is checked here first before doing a general scan.

If anyone with a Mac can help me determine what header file to search to discover the version on Mac/Linux I'd be more than keen to add it for a first pass check.

@derekfreed Derek (derekfreed) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change worked great in my testing. nit: title was a bit confusing since this improves Get-UnitySetupInstance

@jwittner Josh Wittner (jwittner) changed the title Performance enhancements for Get-UnitySetupInstaller Performance enhancements for Get-UnitySetupInstance Jul 7, 2021
@jwittner
Josh Wittner (jwittner) merged commit 0505144 into microsoft:develop Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants