GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve import time of various stdlib modules · Issue #137855 · python/cpython

Improve import time of various stdlib modules #137855

New issue
Copy link
New issue
Copy link
Closed
Closed
Improve import time of various stdlib modules#137855
Copy link
Labels
3.15bugs and security fixesbugs and security fixesperformancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@ofek
ofek
opened on Aug 16, 2025
Issue body actions

Feature or enhancement

Proposal:

Following on from #118761 (comment), further improvements can be made to import times.

Notes

We should backport ensure_lazy_imports tests for the 3.14 improvements, to help guard against regressions.

Linked PRs

  • gh-137855: Improve import time of sqlite3 #131796
  • gh-137855: email.quoprimime removing re import #132046
  • gh-137855: Optimise import time for textwrap #131956
  • gh-137855: Lazy import inspect module in dataclasses #144387
  • gh-137855: Improve import time of pathlib #146327
  • gh-137855: Improve import time of dataclasses by lazy importing re and copy modules #148379
  • gh-137855: Improve import time of textwrap by lazy importing re modules #150156
Reacted by layday

Activity

  1. ofek
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Aug 16, 2025
  2. StanFromIreland
    added
    performancePerformance or resource usagePerformance or resource usage
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Aug 16, 2025
  3. Wulian233
    added a commit that references this issue on Aug 17, 2025

    Rename pythongh-137855

    f434be3
  4. hugovk
    added a commit that references this issue on Apr 11, 2026

    gh-137855: Improve import time of dataclasses by lazy importing `re` …

    dd2735d
  5. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-137855: Improve import time of dataclasses by lazy importing…

    db4cffa
  6. JelleZijlstra
    added a commit that references this issue on Apr 26, 2026

    gh-137855: Lazy import `inspect` module in dataclasses (#144387)

    0a39730
  7. encukou
    added a commit that references this issue on May 5, 2026

    gh-137855: Improve import time of `pathlib` (GH-146327)

    ffb543d
  8. serhiy-storchaka
    added
    topic-importlib
    on Jul 3, 2026
  9. hugovk
    removed
    topic-importlib
    on Jul 25, 2026
  10. hugovk commented on Jul 25, 2026

    @hugovk
    hugovk
    on Jul 25, 2026
    Member
    More actions

    3.15 is in feature freeze and almost in RC, let's close this and continue in #154675 for 3.16. Thanks all! 🚀

  11. hugovk
    closed this as completedon Jul 25, 2026
  12. hugovk
    added
    3.15bugs and security fixesbugs and security fixes
    on Sep 8, 2026
  13. ambv
    added 2 commits that reference this issue on Oct 21, 2026

    Fix CI: add news entry for textwrap import-time optimisation (pythong…

    ad5a3ec

    Fix CI: add news entry for textwrap import-time optimisation (pythong…

    b4e3ec3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15bugs and security fixesbugs and security fixesperformancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.