Commit 0f81808
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".
The cache key is composed by the pkg-config configured program and the
list of directories reported by pkg-config's pc_path variable.
A notice is presented to the user when refreshing the PkgConfigDB.1 parent b34184e commit 0f81808
File tree
152 files changed
+278
-58
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
- ExternalCommandEnv
- ExternalCommandHelp
- ExternalCommand
- ExtraPackages
- ExtraProgPath
- FFI
- ForeignOptsCxx
- ForeignOptsC
- HaddockArgs
- HaddockBuildDepends
- HaddockProject
- HaddockWarn
- InternalLibraries
- JS
- JsSourcesExe
- JsSources
- ListBin
- Script
- SelectedComponent
- MonitorPkgConfig
- 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.
152 files changed
+278
-58
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
157 | 166 | | |
158 | 167 | | |
159 | 168 | | |
| |||
496 | 505 | | |
497 | 506 | | |
498 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
499 | 521 | | |
500 | 522 | | |
501 | 523 | | |
| |||
Lines changed: 31 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
| 536 | + | |
545 | 537 | | |
546 | 538 | | |
547 | 539 | | |
| |||
590 | 582 | | |
591 | 583 | | |
592 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
593 | 588 | | |
594 | 589 | | |
595 | 590 | | |
| |||
609 | 604 | | |
610 | 605 | | |
611 | 606 | | |
612 | | - | |
613 | | - | |
| 607 | + | |
| 608 | + | |
614 | 609 | | |
615 | 610 | | |
616 | 611 | | |
| 612 | + | |
617 | 613 | | |
618 | 614 | | |
619 | 615 | | |
| |||
652 | 648 | | |
653 | 649 | | |
654 | 650 | | |
655 | | - | |
| 651 | + | |
| 652 | + | |
656 | 653 | | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | 654 | | |
675 | 655 | | |
676 | 656 | | |
677 | 657 | | |
678 | 658 | | |
679 | 659 | | |
680 | | - | |
| 660 | + | |
681 | 661 | | |
682 | 662 | | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
| 663 | + | |
688 | 664 | | |
689 | 665 | | |
690 | 666 | | |
691 | 667 | | |
692 | 668 | | |
693 | 669 | | |
694 | 670 | | |
| 671 | + | |
695 | 672 | | |
696 | 673 | | |
697 | | - | |
| 674 | + | |
698 | 675 | | |
699 | 676 | | |
700 | 677 | | |
701 | 678 | | |
702 | 679 | | |
703 | 680 | | |
| 681 | + | |
704 | 682 | | |
705 | 683 | | |
706 | 684 | | |
| |||
721 | 699 | | |
722 | 700 | | |
723 | 701 | | |
| 702 | + | |
724 | 703 | | |
725 | 704 | | |
726 | 705 | | |
727 | 706 | | |
728 | 707 | | |
729 | 708 | | |
730 | | - | |
731 | 709 | | |
732 | 710 | | |
733 | 711 | | |
| |||
752 | 730 | | |
753 | 731 | | |
754 | 732 | | |
755 | | - | |
| 733 | + | |
756 | 734 | | |
757 | 735 | | |
758 | 736 | | |
| |||
1038 | 1016 | | |
1039 | 1017 | | |
1040 | 1018 | | |
1041 | | - | |
1042 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1043 | 1025 | | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1048 | 1034 | | |
1049 | 1035 | | |
1050 | 1036 | | |
| |||
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 | | |
| |||
0 commit comments