Skip to content

Defer creating component provider list until we have to and optimistically create it on a separate thread #79

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

Open
wants to merge 5 commits into
base: 0.78.0-discord
Choose a base branch
from

Conversation

Szymon20000
Copy link

Summary:

Changelog:

Test Plan:

Copy link

@hannojg hannojg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some minor NITs (don't have to be addressed if you don't feel like it)

Comment on lines +30 to +31
void ComponentDescriptorRegistry::addMultipleAsync(
std::vector<ComponentDescriptorProvider> providers) const {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: do we want to make this a rvalue reference && to make obvious that the function wants to take ownvership?

@@ -15,6 +15,7 @@
#include <react/renderer/core/ComponentDescriptor.h>
#include <react/renderer/core/InstanceHandle.h>
#include <react/utils/ContextContainer.h>
#include <thread>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: as we only need that in the implementaton lets move it to the cpp file to keep the header clean?

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