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

feat(perf): use lazy module evaluation #152

Merged

Conversation

thymikee
Copy link
Member

@thymikee thymikee commented Feb 5, 2019

Summary:

After #150 (thanks @sidferreira and @Trancever) we're finally able to use lazy module evaluation for additional perf!

Before:

0.70 real         0.64 user         0.12 sys

After:

0.19 real         0.16 user         0.03 sys

Which gives us roughly 0.5s (~72%) improvement in startup time. With 0.2s startup time most commands feel instant now.

Test Plan:

No new tests added.

@grabbou
Copy link
Member

grabbou commented Feb 6, 2019

This is so good! We got from around 2.5s to 0.2s over two weeks. Can't wait to ship it to React Native developers!

@thymikee thymikee merged commit 9a45766 into react-native-community:master Feb 6, 2019
@thymikee thymikee deleted the feat/inline-requires branch February 6, 2019 08:17
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.

2 participants