Skip to content

Use singleton app provider to speed up compiles#2172

Merged
picklelo merged 14 commits intomainfrom
nikhil/provider
Nov 21, 2023
Merged

Use singleton app provider to speed up compiles#2172
picklelo merged 14 commits intomainfrom
nikhil/provider

Conversation

@picklelo
Copy link
Copy Markdown
Contributor

We were creating the AppProvider for every component - this change creates a singleton for the Chakra provider to speed up build times.

Copy link
Copy Markdown
Collaborator

@masenf masenf left a comment

Choose a reason for hiding this comment

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

Is this actually a noticeable difference??

@picklelo
Copy link
Copy Markdown
Contributor Author

The provider added around 1-2 seconds to the compile time so it made a difference. With the changes so far I've brought it down to 4s now.

@picklelo picklelo merged commit e9437ad into main Nov 21, 2023
@masenf masenf deleted the nikhil/provider branch December 6, 2023 22:16
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.

3 participants