Commit 6170fe3
committed
Add separate cache for getPkgConfigDb
Querying pkg-config for the version of every module can be a very
expensive operation on some systems. This change adds a separate,
per-project, cache for pkgConfigDB; reducing the cost from "every plan
change" to "every pkg-config-db change per project".
No input key is required since getPkgConfigDb already specifies the
directories to monitor for changes. These are obtained from pkg-config
itself as `pkg-config --variable pc_path pkg-config` as documented in
pkg-config(1).
A notice is presented to the user when refreshing the packagedb.1 parent 156d8b2 commit 6170fe3
File tree
140 files changed
+159
-4
lines changed- cabal-install/src/Distribution/Client
- cabal-testsuite/PackageTests
- Backpack
- Includes2
- Includes3
- Reexport2
- T6385
- bkpcabal01
- BuildDeps
- DepCycle
- InternalLibrary1
- BuildTargets
- UseLocalPackageForSetup
- UseLocalPackage
- BuildToolDepends
- BuildTools
- External
- Internal
- CmmSourcesDyn
- CmmSourcesExe
- CmmSources
- ConditionalAndImport
- ConfigFile/T8487
- Configure
- CopyHie
- CustomSegfault
- CustomWithoutCabalDefaultMain
- CustomWithoutCabal
- ExecModern
- Exec
- ExtraPackages
- ExtraProgPath
- FFI
- ForeignOptsCxx
- ForeignOptsC
- HaddockArgs
- HaddockProject
- HaddockWarn
- InternalLibraries
- JS
- JsSourcesExe
- JsSources
- ListBin
- Script
- SelectedComponent
- MultiRepl
- CabalTooOld
- EnabledClosure
- EnabledSucc
- NotEnabledFail
- MultipleLibraries
- Failing
- Successful
- T6083PostMixin
- T6083Post
- T6083PreMixin
- T6083Pre
- T6894
- NewBuild
- CmdBench
- MultipleBenchmarks
- OptionsFlag
- WarningRTS
- CmdBuild
- OnlyConfigure
- ScriptBuildRepl
- ScriptBuildRun
- ScriptRerun
- Script
- CmdClean
- Keep
- Orphan
- Script
- CmdExec
- GhcInvocation
- RunExe
- CmdRepl
- ScriptRerun
- Script
- CmdRun
- Datafiles
- ExeAndLib
- ExitCodePropagation
- MultipleExes
- MultiplePackages
- RunMainBad
- ScriptLiterate
- ScriptNoExtension
- ScriptRerun
- ScriptWithProjectBlock
- Script
- Single
- WarningRTS
- CmdTest
- OptionsFlag
- WarningRTS
- MonitorCabalFiles
- T3827
- T3978
- T4017
- T4405
- T4477
- NewFreeze
- BuildTools
- Flags
- FreezeFile
- NewHaddock
- DisableDoc
- Fails
- HaddockOutput
- HaddockForHackageCmdOutput
- HaddockOutputCmd
- HaddockOutputConfig
- ImplyDependencies
- OfflineFlag
- PackageDB
- Project/WarnBuilddir
- Regression
- T4154
- T4202
- T4720
- T5213ExeCoverage
- T5213
- T5309
- T5677
- T6334
- T6853
- T6961
- DepExternal
- DepInternal
- Exe
- Test
- T7234
- Fail
- Success
- T8507
- RelativePathProjectImports
- ReplNoLoad
- ReplOptions
- ShowBuildInfo
- A
- CompileFail
- Complex
- TestCodeGenerator
- TestSuiteTests/ExeV10
- changelog.d
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
140 files changed
+159
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
641 | 642 | | |
642 | 643 | | |
643 | 644 | | |
| |||
725 | 726 | | |
726 | 727 | | |
727 | 728 | | |
728 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
729 | 734 | | |
730 | 735 | | |
731 | 736 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments