-
Notifications
You must be signed in to change notification settings - Fork 389
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
[Performance] Visual Studio locks up after a build if you have diagnostic build turned on #1242
Comments
#1384 (comment) We are spending most time in kernelbase!strlenW |
I looked into the build trace, and it was clearly a performance issue in the output window side. Name Inc % Inc Exc % Exc Fold When Basically, the code breaks down the input string into lines, and append them piece by piece to an internal buffer. Every appending, it will recalculate the length of the string in the buffer, and the length of the new string, although both of them known, and then reallocate the buffer. It is repeated for every line and every call. I think it should change the code to buffer the original strings into a list, and merge them together in one call, so the buffer size can be calculated before hand to prevent all extra allocation/copy and resizing. I will loop the right team. I don't think any change on the CPS side can fix or reduce this problem. |
Is the reason we're not seeing this in legacy is because it writes a single chuck whereas we buffer? |
I think the editor team did some work in this area to fix some performance problems, and the change might change how strings are merged, and caused a regression here. Also CPS buffering messages might make it worse, if the output window is slower than the build, the output messages will start to be queued in the internal buffer, and push to the output window more aggressively in a large batch. |
@lifengl Do you have a bug on VSO side for this? Otherwise, I can open one and assign it to you so you can forward it to the correct team. |
Bug 374371
…Sent from my phone
On Feb 7, 2017, at 10:29 AM, Manish Vasani <notifications@github.com<mailto:notifications@github.com>> wrote:
@lifengl<https://github.com/lifengl> Do you have a bug on VSO side for this? Otherwise, I can open one and assign it to you so you can forward it to the correct team.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1242 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ALGWwtg2Hbtkwe6qe1I_CwXuBDTLIlhTks5raLfKgaJpZM4Lnp4d>.
|
-- Notice that the build is instant and Visual Studio does not lock up
-- Notice that builds takes > 10 seconds and locks up Visual Studio during it --
The text was updated successfully, but these errors were encountered: