flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.57k stars 323 forks source link

Reduce number of requests when inspecting widget #4451

Open CoderDake opened 2 years ago

CoderDake commented 2 years ago

When fighting on a widget or clicking to inspect a widget. A lot of requests are sent to the service in order to populate the card. This causes a lot of delay in our processes that display that information.

We should find a way to deduce the another of requests that it depends on our dogs a way to combine the requests into one in order to avoid latency pile ups

annagrin commented 2 years ago

Heads up:

CoderDake commented 2 years ago

It looks like that buildVariablesTree call which spawns all of the requests to eval, is in need of some refactoring. I was able to find a way to lazy load variables such that way fewer requests needed to be sent at a time, but it was prohibitively difficult to find a away to have the TreeView reflect that and load properly.

I'm going to bump this ticket down my list a little bit and come back to it with fresh eyes in a little while