Speedup render of eventProblems table #98
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #92 . The current page was in such a bad way, I couldn't even get the profiler to work without crashing, this makes some small changes and it has dramatic effects:
Together these reduce the time to load that page from ~45-90s (and then unresponsive at that) to ~2-4s but then the problem is tooltips, I discovered all tooltips were being rendered despite being not visible, I suspected there would be a way to lazyload the tooltips, or to mount them only when they are being used and found this:
mui/material-ui#10909 and mui/material-ui#12085
Seems the material UI people found the same issue with tooltips being effectively unusable at scale, sadly flowbite does not have the same "lazy loading" ability.
So I swapped the tooltips from flowbite to material UI on this page only, this makes the render almost instant: