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

Startup time #2

Open
1 of 3 tasks
roman01la opened this issue Dec 21, 2018 · 1 comment
Open
1 of 3 tasks

Startup time #2

roman01la opened this issue Dec 21, 2018 · 1 comment

Comments

@roman01la
Copy link
Member

roman01la commented Dec 21, 2018

On my Xiaomi Redmi Note 5 it takes ~4 seconds till the app becomes responsive. After quick profiling I can see that most of the time is spent on evaluating JavaScript in V8. Not that it's terrible amount of time, but if possible I'd like to improve this.

Possible solutions:

  • Move V8 into background thread, so UI is responsive immediately
  • Compile V8 with startup snapshotting enabled
  • Build the whole thing together and AOT compile with Prepack (requires additional type hinting on compiled code, doesn't worth to invest time)
@roman01la
Copy link
Member Author

Moved V8 into separate thread, now UI and prompt popups up immediately, Eval button is being kept disabled till REPL initialization is done c3be0e5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant