Skip to content

Extremelly slow module import in integrated console #1556

Open
@majkinetor

Description

@majkinetor

Modules are loaded very slow (20-50 times slower), particularly if made by bunch of ps1 files that are included in psm1. The integrated console starts very slow too, around the same time slower then when adding new terminal which starts way faster even with bunch of stuff in my profile.

The following gif shows a) native powershell loads moudle in 1s, integrated in 22s

super-meh

This of course makes debugging virtually impossible, particularly if you have import-module xyz -force as you need to wait a long time for module to reimport on each F11. In my company everybody stopped debugging in vscode because of this.

This wasn't the case lets say a year from now, it started happening after some version and I hopped it was going to be intermittent quirk but its still there.

This was recorded on very good machine with 32 CPUs and 32GB Ram and fast SSD disc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions