Command Caching Analysis

Welcome Forums General PowerShell Q&A Command Caching Analysis

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
2 years, 4 months ago.

  • Author
    Posts
  • #46929

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 1,639
    Helping HandTeam Member
    Rank: Community Hero

    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.

The topic ‘Command Caching Analysis’ is closed to new replies.