Skip to content

Lazily load psapi.dll in ctypes #145307

@zooba

Description

@zooba

Bug report

Importing ctypes.util will load psapi.dll on Windows eagerly, which isn't necessary until the actual function that needs it is called. We should make it load lazily.

Linked PRs

Metadata

Metadata

Assignees

Labels

OS-windowsperformancePerformance or resource usagetype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions