2/13/2023 0 Comments Gameguard error cabal phThe only fishy thing in that function was the foldr (flip append) thingy. After adding it to my sandbox via cabal sandbox add-source I also did the ghc-prof-options fix and ran it with +RTS -Pa which gives the calling context and pointed to the hopefulTransfer function. ![]() Guess 3: Must be an issue in the HTTP library. A few putStrLns also revealed that it's not an issue in the cabal-install code itself. All the allocations came from the downloading function. Let's do some regular performance profiling. Neither the Cost centre profiling nor bibliographic profiling showed any obvious space leaks. I added ghc-prof-options: -O2 -fprof-auto to cabal-install.cabal and compiled it with -enable-executable-profiling. I removed the tarball unpacking code and did some memory profiling. ![]() Guess 1: Perhaps it's a weird space leak. The weirdest part was that 66% of the time was spent in GC. So, the problem was indeed somewhere in the downloading code. However, replacing the downloading code with just a file copy showed that the unpacking is quick enough, too. I assumed it had to do with the tar library, since cabal update -v is very quick to report that it has successfully downloaded the package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |