-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare ResourceResolver to be shared across all Component$Builder in…
…stances Summary: Local profiling has shown us that calling Context#getResources can be surprisingly expensive. We currently do this during every Component$Builder constructor. To improve perf, we want to instead do this once per Context. These changes make ResourceResolver ready to be shared that way - namely, we stop recycling/releasing ResourceResolver and we stop sharing the themeAttrs array across method calls since multiple threads might want to use it. Reviewed By: astreet Differential Revision: D16587479 fbshipit-source-id: 47b75cd4911cb5d9a0eebd3d1b79f3a382f3fe2f
- Loading branch information
1 parent
fa87c02
commit c93517c
Showing
3 changed files
with
26 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters