trpc-panel icon indicating copy to clipboard operation
trpc-panel copied to clipboard

feat: performance imporve in the browser

Open Dxig opened this issue 2 years ago • 5 comments
trafficstars

My server has ≈50 routers. The page is stuttering when I click router or excute request.

**environment

  • trpc-panel ^1.3.0
  • tRPC ^10.20.0
  • expressjs ^4.18.2
  • chrome 112
  • macOS 13.2

Dxig avatar Apr 19 '23 06:04 Dxig

thanks I'll try to reproduce this with a big router and see what I can do. How many procedures are there per router?

iway1 avatar Apr 19 '23 19:04 iway1

thanks I'll try to reproduce this with a big router and see what I can do. How many procedures are there per router?

1~5 procedures per router. Total ≈100 procedures

Thank you for your efforts!

Dxig avatar Apr 20 '23 14:04 Dxig

Could you try out v1.3.1?

I made some improvements that should make the performance better, hoping it'll be a big enough difference to run smoothly on your machine.

If not, it seems like the hiding the side bar can speed up performance in cases where there are a huge number of routers, although I'm not really sure why.

iway1 avatar Apr 23 '23 19:04 iway1

let me know if you get a chance to test it and if it improved performance or not. If not I'll try some more stuff

iway1 avatar Apr 25 '23 23:04 iway1

let me know if you get a chance to test it and if it improved performance or not. If not I'll try some more stuff

Upgrade to latest 1.3.4. It feels better performance than ever. But a little unresponsive. Maybe too many elements in the page. It is acceptable in my opinion. Thanks for your fix.

Dxig avatar Apr 26 '23 17:04 Dxig