Command Caching Analysis

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 1 year ago.

  • Author
  • #46929
    Profile photo of Luke Griffith
    Luke Griffith

    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 🙂

  • #46937
    Profile photo of Don Jones
    Don Jones

    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.

You must be logged in to reply to this topic.