Skip to content

Perf: Reduce Windows VC++ redistributable detection overhead on import #55

@MariusStorhaug

Description

Summary

Optimize Windows startup path by reducing registry probe overhead for VC++ runtime detection.

Why

Module import currently performs registry checks that add cold-start latency. Successful native initialization can often be used as the practical runtime proof.

Proposed change

  • Evaluate replacing or minimizing registry probing in Assert-VisualCRedistributableInstalled path.
  • Favor fast-fail based on native load/init outcome where appropriate.
  • Preserve actionable warning/error guidance when runtime dependencies are truly missing.

Acceptance criteria

  • Windows cold-start improves or remains neutral.
  • Missing-runtime scenarios still produce actionable diagnostics.
  • Existing tests pass.
  • No false-positive success when runtime is unavailable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions