Skip to content

Recommend --config-cache for configure #1547

Description

@hugovk

Describe the enhancement or feature you would like

Using --config-cache with configure makes it much quicker: 3s cached vs 39s without on my machine.

Some example wasm commands include it, but shall we include it by default in the other relevant commands on that page, and the front page?

Describe alternatives you have considered

Status quo, builds are slower. Or only include it in the getting-started/setup-building page if there's some reason not to put in on the front page.

Additional context

Not everyone knows about this option: python/cpython#133027 (comment)

Activity

  1. encukou commented on Aug 6, 2025

    @encukou
    Member

    It's faster but also adds another thing that can go wrong.
    If config.cache is out of date (for example, you switch compilers or use different settings), it needs to be removed.

  2. corona10 commented on Aug 6, 2025

    @corona10
    Member

    I will find a contributor during PyCon KR sprint next week.

  3. vstinner commented on Aug 6, 2025

    @vstinner
    Member

    I'm using a configure cache for many years and I never got any issue because of this cache. If the C compiler changes or if C flags (especially the optimization level) change, configure complains: I just delete the cache in this case. The error message is quite explicit and helpful.

  4. added
    type-featureAdditions; New content or section needed
    and removed
    type-featureAdditions; New content or section needed
    type-bugEditing of existing content needed
    on Mar 3, 2026
  5. added 8 commits that reference this issue on Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions