Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: decrease web app loading time #1147

Open
wants to merge 2 commits into
base: v3/prod
Choose a base branch
from

Conversation

sbuljac
Copy link
Contributor

@sbuljac sbuljac commented Sep 25, 2024

Scripting takes a lot of time when app is loaded firs time, most of the heavy computation lies in the client registries, by implementing simple cash logic I was able to reduce scripting time from ~15sec to ~6sec (tested locally with web:serve).

Ideally we would completely refactor registries to reduce complexity and increase performance but maybe this will do for now.
@jeffywu I can also change cashing logic so it expires after 20-30 sec(first load) if you think it is necessary

Note: additional improvements can be made if you are ok with this type of caching/optimization
Before:
image
After:
image

@sbuljac sbuljac requested a review from jeffywu September 25, 2024 10:39
@sbuljac sbuljac force-pushed the fix/decrease-loading-time branch 2 times, most recently from 5bab923 to 5d5d131 Compare September 25, 2024 12:06
@sbuljac sbuljac force-pushed the fix/decrease-loading-time branch from 5d5d131 to d735584 Compare October 10, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant