Skip to content

Script takes ~13x longer to start when comparing development version of stack with 1.9.3 #4536

@mgsloan

Description

@mgsloan

Steps to reproduce

Contents of ~/tmp/hmm.hs:

#!/usr/bin/env stack
-- stack --resolver lts-13.0 script

main :: IO ()
main = putStrLn "hmm

Development version of stack:

mgsloan@treetop:~/tmp$ $(which stack) --version
Version 1.10.0, Git revision 570172b8ca0d5fd4a382abadb2951493616b0387 (6826 commits) x86_64 hpack-0.31.1
mgsloan@treetop:~/tmp$ time ./hmm.hs
hmm

real    0m3.513s
user    0m3.299s
sys     0m0.251s

I also had to wait quite a while for it to parse ~100,000 cabal files (but that is not included in this particular run)

Stack-1.9.3:

mgsloan@treetop:~/tmp$ $(which stack) --version                                                               
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1       
mgsloan@treetop:~/tmp$ time ./hmm.hs                                                                          
hmm                                                                                                           
                                                                                                              
real    0m0.281s
user    0m0.260s
sys     0m0.047s

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions