Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Free modules' factories after caching module
Summary:The require functions will keep the generate bytecode + lexical environment in memory unnecessarily, since we can be sure that it will be executed at most once Reviewed By: davidaurelio Differential Revision: D3168257 fb-gh-sync-id: 038e1bc08abea94ee52d0390b6aced5fb652f493 fbshipit-source-id: 038e1bc08abea94ee52d0390b6aced5fb652f493
- Loading branch information
1 parent
551c154
commit 887c275
Showing
2 changed files
with
21 additions
and
1 deletion.
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