devguide icon indicating copy to clipboard operation
devguide copied to clipboard

Recommend `--config-cache` for `configure`

Open hugovk opened this issue 8 months ago • 3 comments

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: https://github.com/python/cpython/pull/133027#issuecomment-2848775080

hugovk avatar May 03 '25 19:05 hugovk

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.

encukou avatar Aug 06 '25 10:08 encukou

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

corona10 avatar Aug 06 '25 11:08 corona10

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.

vstinner avatar Aug 06 '25 17:08 vstinner