You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Progress Reporting makes Invoke-RestMethod 70x slower #2238
It is a proper issue. But the real culprit here is probably the implementation of console host WriteProgress(). It can be improved for all cmdlets, including Invoke-RestMethod.
Roman Kuzmin 1967-2026 (@nightroman) I get the point of that connect item, but it seems to be putting the onus on powershell to ignore too many calls to WriteProgress instead of - imo rightfully - blaming the caller for making too many calls :) That said, the base performance could likely be improved, absolutely.
Activity
nightroman commentedon Sep 12, 2016
It is a proper issue. But the real culprit here is probably the implementation of console host
WriteProgress(). It can be improved for all cmdlets, includingInvoke-RestMethod.https://connect.microsoft.com/PowerShell/feedback/details/337323
oising commentedon Sep 12, 2016
Roman Kuzmin 1967-2026 (@nightroman) I get the point of that connect item, but it seems to be putting the onus on powershell to ignore too many calls to
WriteProgressinstead of - imo rightfully - blaming the caller for making too many calls :) That said, the base performance could likely be improved, absolutely.andyleejordan commentedon Sep 19, 2016
I'm surprised that it is faster in PS 6 than in PS 5.1. Wow.
SteveL-MSFT commentedon Oct 16, 2016
This is dupe of #2138