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
New layout slower? #77856
Comments
From @sbatten:
|
From @jrieken:
|
Upon investigating this, I noticed a SerializableGrid being constructed twice for the workbench... I found I'm always hitting this... which means the grid is never restored from serialization. You can't call So:
This was for sure responsible for most of the cost, since the grid would instantiate twice. Always. I also like the idea of suspending layout calls until deserialization is complete, so I've also pushed this. For example, this reduced the status bar @jrieken How can we get new numbers? |
You run and measure locally? For the perf bot: it runs twice a day (morning & afternoon) but only when there is new insiders available. |
Yes I mean the perf bot, since the first post mentions an increase on that setup. Let's wait for tomorrow then. |
@joaomoreno that code setting undefined was just checked in last night, so it may have been causing a new perf issue but I don't think it was the original issue. |
@sbatten OK. Once I removed it I saw startup duration cut by almost half, so I assumed it was that. Let's wait for da numbas. |
Perf machine reports ~1780ms which is roughly at the level of the first regression, confirming what @sbatten said here: #77856 (comment) |
Moving to August since it's not impacting endgame. |
@sbatten Great job! I can see, using breakpoints, that the editor is only called I found something. On my beefy machine, given a specific workbench size and layout, I can measure the CPU profile of these two calls taking roughly 50ms: bad.cpuprofile.txt There's a lengthy Since #78167 was pushed out to September, I'll just revert that fix, since it isn't super important anyway. |
Yep, by reverting the changes from #78167, I can bring the average of
|
@jrieken Closing this for now, let me know what the bot says tomorrow! |
Revert "fix microsoft#78768" This reverts commit b6a4220. Related to microsoft#77856 and microsoft#78167 Revert "fixes microsoft#78167" This reverts commit a417a06. Related to microsoft#77856 and microsoft#78167
Not sure how to verify this. Startup was slow compared to old runs but @jrieken attributed that to Windows bloat.
|
To verify, preferably with a clean install or with extensions disabled, use the grid layout setting to try both configurations for several runs. Compare startup perf using the command
|
Here are my numbers, seems overall good:
|
The perf machine showed a ~50ms drop after shipping the new workbench layout. This is something we need to understand and investigate
The text was updated successfully, but these errors were encountered: