Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Import-module is very slow, take from 7-16 seconds #35
I added some timings to the Carbon.psm1 file and it turns out the entire import time is taken up by checking if the Win32_OptionalFeature is installed, about 19 seconds in this attempt. Dot-sourcing all the function files only takes a second.
added a commit
Dec 13, 2017
as you can see the dot-sourcing is the slowdown here.
And here for the complete log with timestamps on the dot sourcing: