-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
react-packager: Switch from Q to Bluebird as promises library #516
Conversation
It turns out code works fine but @petkaantonov |
…ill fails because of issue in Jest/Bluebird.
ok, I think I can fix the jest error (or at least hack around it). I'll work on pulling this |
Tested on internal source (which is considerably larger) and this yields a consistent 30% speedup. Great job! I'll sync the changes here soon. |
@amasad 30% speedup sounds beyond awesome. I have a feeling a lot of folks will enjoy the speed improvement with this update ✨😀👍 Btw, I noticed |
@amasad Updated all code to use |
I already updated that internally :) I should've mentioned that |
I just need to sync from our internal repo. Our tools are not in a great place now, but we can't merge pull requests directly from github we have to go through internal review process |
@amasad Understood. FB's merge policy between the internal code and Will FB always update its internal code first then bring the changes back to If this is the case though, please add more information to |
@pilwon we want to eventually be github first but are not ready yet. For the time being, we need to ensure that every pull request passes our internal test suites and don't break our internal apps. Good idea about updating the contributing.md file |
Merged internally and synced. |
Summary: This PR improves performance of `react-packager` by switching the promises library from the [Q](https://github.com/kriskowal/q) to [Bluebird](https://github.com/petkaantonov/bluebird). [Here is the test result](facebook#361 (comment)) showing a noticeable difference. (2x speed improvement) Please refer to [this issue](facebook#361) for more details. Closes facebook#516 Github Author: Pilwon Huh <pilwon@gmail.com> Test Plan: ./runJestTests start app and click around
Summary: This PR improves performance of `react-packager` by switching the promises library from the [Q](https://github.com/kriskowal/q) to [Bluebird](https://github.com/petkaantonov/bluebird). [Here is the test result](facebook#361 (comment)) showing a noticeable difference. (2x speed improvement) Please refer to [this issue](facebook#361) for more details. Closes facebook#516 Github Author: Pilwon Huh <pilwon@gmail.com> Test Plan: ./runJestTests start app and click around
Summary: This PR improves performance of `react-packager` by switching the promises library from the [Q](https://github.com/kriskowal/q) to [Bluebird](https://github.com/petkaantonov/bluebird). [Here is the test result](facebook#361 (comment)) showing a noticeable difference. (2x speed improvement) Please refer to [this issue](facebook#361) for more details. Closes facebook#516 Github Author: Pilwon Huh <pilwon@gmail.com> Test Plan: ./runJestTests start app and click around
Summary: This PR improves performance of `react-packager` by switching the promises library from the [Q](https://github.com/kriskowal/q) to [Bluebird](https://github.com/petkaantonov/bluebird). [Here is the test result](facebook/react-native#361 (comment)) showing a noticeable difference. (2x speed improvement) Please refer to [this issue](facebook/react-native#361) for more details. Closes facebook/react-native#516 Github Author: Pilwon Huh <pilwon@gmail.com> Test Plan: ./runJestTests start app and click around
This PR improves performance of
react-packager
by switching the promises library from the Q to Bluebird.Here is the test result showing a noticeable difference. (2x speed improvement)
Please refer to this issue for more details.