Programs are configured needlessly often

Open
#12,544 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

Cabal: cmd/configure type: bug

We call configureAllKnownPrograms once for every component, when it only depends on the search path and the program arguments.

The cost is partially the program launches, but for my work codebase we have a quite a large PATH, and so we a) construct large PATH strings, and b) probe every directory on the PATH for failed lookups.

The PATH strings are a non-trivial contribution: they mean we do a lot of allocation and spend a lot of time GCing.

Dominant language
Haskell
Stars
1.8k
Forks
766
Avg merge
5d 21h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from haskell/cabal

All issues in haskell/cabal

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.