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

Perf/UIHang - Improve DownloadTimeoutStream reads #4266

Closed
rrelyea opened this issue Jan 12, 2017 · 2 comments
Closed

Perf/UIHang - Improve DownloadTimeoutStream reads #4266

rrelyea opened this issue Jan 12, 2017 · 2 comments
Assignees
Milestone

Comments

@rrelyea
Copy link
Contributor

rrelyea commented Jan 12, 2017

See internal bug 365384:
These are 15 sec+ hangs where the IDE is unresponsive, and this is the #3 hitter in RC.2, so please investigate.

@emgarten
Copy link
Member

This could be related to the JTF and improved by the current fix to use a CPS enabled JTF.

@emgarten
Copy link
Member

I've tracked this down to the feed parser for v2 and v3 loading XML and json synchronously from DownloadTimeoutStream when there is no cache being used, which is almost always the case for the UI.

emgarten added a commit to NuGet/NuGet.Client that referenced this issue Jan 20, 2017
This change avoids calls to DownloadTimeoutStream.Read by reading streams into MemoryStreams using CopyToStreamAsync which uses DownloadTimeoutStream.ReadAsync instead.

Fixes NuGet/Home#4266
emgarten added a commit to NuGet/NuGet.Client that referenced this issue Jan 20, 2017
This change avoids calls to DownloadTimeoutStream.Read by reading streams into MemoryStreams using CopyToStreamAsync which uses DownloadTimeoutStream.ReadAsync instead.

Fixes NuGet/Home#4266
@rrelyea rrelyea changed the title [Watson] visualstudiononfatalerrors2: VSNONFATALERROR_80000003_devenv.exe!vs.core.delaynotification_unknown_NuGet.Protocol.Core.v3_NuGet.Protocol.DownloadTimeoutStream.Read_unknown__InstrumentDelayNotification Perf/UIHang - Improve DownloadTimeoutStream reads Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants