microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.63k stars 29.04k forks source link

Showing multi diff editor take 2 seconds #199345

Open isidorn opened 10 months ago

isidorn commented 10 months ago

Testing #199155

Clicking on the Multi Diff Editor until the content appears feels sluggish. On my machine it looks like 1s+, and you can clearly see the white screen.

Can we make this more performant? Or to at least use some tricks that we immediately start rendering

https://github.com/microsoft/vscode/assets/1926584/40c00507-7f60-49a8-8058-480c6a609e7f

hediet commented 10 months ago

I have an idea how we can improve this:

Then there will be no flickering, as this only appends content.

isidorn commented 10 months ago

Sounds like a reasonable approach to me.