Skip to content

Commit

Permalink
Parse .dump-hi files of library components only once
Browse files Browse the repository at this point in the history
This fixes a performance regression introduced in
5f3ffe5.
  • Loading branch information
sjakobi authored Oct 3, 2016
1 parent 2caa052 commit 8997b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ Bug fixes:
[#2568](https://github.com/commercialhaskell/stack/issues/2568)
* Fixed running `stack hpc report` on package targets.
[#2664](https://github.com/commercialhaskell/stack/issues/2664)
* Fix a long-standing performance regression where stack would parse the .dump-hi
files of the library components of local packages twice.
[#2658](https://github.com/commercialhaskell/stack/pull/2658)

## 1.2.0

Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ libraryFiles lib = do
resolveFilesAndDeps
Nothing
(dirs ++ [dir])
(names <> exposed)
names
haskellModuleExts
cfiles <- buildOtherSources build
return (modules, files <> cfiles, warnings)
Expand Down

0 comments on commit 8997b11

Please sign in to comment.