reproducer for test suite blowup to hand off to ghc folk
I was talking with @AndreasPK , and a more polite version of the blowup that we fixed recently that can easily be built / profiled with ghc master and has < 3gb memusage would be ideal.
@lehins any thoughts on this? (would a version of Test.Vector.Unboxed module work?)
the pre split into modules blowup had the bizzare extreme ~ 16-17gb ram usage, though ghc would only report using ~ 3-6gb?
current theory: O1/O2 have some space leaks that this code exercises.
I know just the thing that needs to be done for this, since I experimented with it last night.
In order to get the ~16Gb explosion as before, all is necessary is uncommenting this INLINE pragma out here: https://github.com/haskell/vector/blob/da6395943dbe3d5cbba799e962a566bd8c2ecebd/tests/Tests/Vector/Property.hs#L108-L110
And in case a more manageable ~4Gb repro is needed, then, same as above, uncommenting that inline pragma and commenting out majority of these tests groups: https://github.com/haskell/vector/blob/da6395943dbe3d5cbba799e962a566bd8c2ecebd/tests/Tests/Vector/Unboxed.hs#L49-L59
More of them removed, less memory will be consumed ;)
@AndreasPK @bgamari @RyanGlScott is this enough info to provide a "choose your own blowup size" reproducer for ghc profilin?
@AndreasPK
[ 5 of 12] Compiling Tests.Vector.Unboxed ( tests/Tests/Vector/Unboxed.hs, ~/dev/vector/dist-newstyle/build/x86_64-osx/ghc-8.6.5/vector-0.13.0.1/t/vector-tests-O2/build/vector-tests-O2/vector-tests-O2-tmp/Tests/Vector/Unboxed.o
that module is still brutally slow to build on master :) , but only uses 1-2gb