vscode-ext icon indicating copy to clipboard operation
vscode-ext copied to clipboard

Slow loading of the Networks view

Open kevinbluer opened this issue 2 years ago • 1 comments

Not sure if it's just local to my machine, but currently it takes ~3-5 seconds to load the networks tab.

Screen Shot 2022-07-07 at 4 13 56 PM Screen Shot 2022-07-07 at 4 15 47 PM

cc @xhulz @michaeljohnbennett @acuarica how's it looking on your sides?

kevinbluer avatar Jul 07 '22 21:07 kevinbluer

Hey @kevinbluer,

We have 2 problems here:

  1. Loader: If you go to the docker extension and open it, you will see that each tab has its own loader. In our case, the only loader is configured on Network Tab, and all initialization(requeired apps, debbuger, constants, tree manager...) is happening inside this loader. We have to put loaders on all these tags, and make their initializations independent.

  2. Required Apps: What is taking a lot of time to execute is the validation of required apps. It's taking 3 to 5 seconds to validate. We need to put it running in background

See below some references:

Loaders

Docker:

Screenshot 2022-07-08 at 11 51 23

Truffle:

Screenshot 2022-07-08 at 11 50 10

Required apps

Execution time

Screenshot 2022-07-08 at 11 55 25

xhulz avatar Jul 08 '22 11:07 xhulz