Performance hit switching to sub pages #5070
davetapley
started this conversation in
General
Replies: 1 comment 4 replies
-
That looks strange. Could you share the exact timing measurements? For example by adding logging output? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on an MRE, but wanted to put this out there in case anyone has any ideas 🙏🏻
So I have something like this:
It's not the most efficient code ever, but I get the
aggrid
within approx. 2 seconds which is good enough for me.Today I started refactoring to sub pages.
Immediately I noticed something strange: Unlike in the async sub pages demo, I would see nothing for approx. 8 seconds, then suddenly get the
label
and theaggrid
at the same time.Okay, so figure I should probably be using
run.cpu_bound
, so I update it to this:Great, I now get the expected behavior, but it still takes approx. 8 seconds to see the
aggrid
(eachawait
seems to take a couple of seconds) 🤯I went back to my original implementation but with using
run.io
, and it still loads in approx. 2 secs.I tried creating an MRE using a fake endpoint and
sleep
to simulate the processing, but I can't reproduce.Beta Was this translation helpful? Give feedback.
All reactions