Command Caching Analysis

Hello Everybody,

I’ve been trying to search online and in the numerous books I have on powershell, but can’t find any details of how the command caching analysis works.

Does anyone have any experience with troubleshooting this functionality? I’m seeing massive IO, and huge delays since moving to WMF5 on auto complete and auto module loading.

I know the Module Manifest can be used to reduce this, by explicitly stating functions to export. Without this how does the engine process the internals of the module is it through an import and reflection of the module its self?

Any help would be awesome :slight_smile:

Without a manifest, the module must be entirely parsed. That does add a lot of overhead. It isn’t reflection; it’s essentially a temporary import.