Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispense with temp file generation in inventory collection on Windows #3653

Merged
merged 1 commit into from Jul 29, 2015
Merged

Dispense with temp file generation in inventory collection on Windows #3653

merged 1 commit into from Jul 29, 2015

Conversation

djberg96
Copy link
Contributor

This change modifies the powershell inventory collection script so that it's no longer writing XML to a temp file, but instead just writes directly to stdout. The WinRM library is just gathering stdout information, so writing to a temp file was not only not necessary, but reading it back out was time consuming.

With this change I saw a 30-40% speed improvement.

@miq-bot
Copy link
Member

miq-bot commented Jul 29, 2015

Checked commit https://github.com/djberg96/manageiq/commit/4bd8ffc9e08908970daab7aa2618815989b34ce4 with rubocop 0.32.1 and haml-lint 0.13.0
0 files checked, 0 offenses detected
Everything looks good. 🍰

@Fryguy
Copy link
Member

Fryguy commented Jul 29, 2015

👍 @bronaghs @blomquisg Please review.

@chessbyte
Copy link
Member

@djberg96 Nice find!!!! I reviewed the code and it looks good to me! 👍

blomquisg added a commit that referenced this pull request Jul 29, 2015
Dispense with temp file generation in inventory collection on Windows
@blomquisg blomquisg merged commit 647bdbd into ManageIQ:master Jul 29, 2015
@chessbyte chessbyte added this to the Sprint 27 Ending August 3, 2015 milestone Jul 29, 2015
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.

None yet

5 participants