Skip to content
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

chore: Lazy load modules that are rarely/never needed in test processes. #1232

Merged
merged 1 commit into from Nov 19, 2019

Conversation

coreyfarrell
Copy link
Member

This reduces Object.keys(require.cache).length in child processes by a couple dozen. This reduction in loaded modules could add up for repositories which use hundreds or even thousands of child processes.

@coreyfarrell coreyfarrell merged commit 28ed746 into istanbuljs:master Nov 19, 2019
@coreyfarrell coreyfarrell deleted the lazy-loads branch November 19, 2019 23:37
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.

None yet

1 participant