haskell / haskell/vector

Inlining functions of Unboxed vector consumes a lot of memory

Open
#274 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
400
Forks
145
PR merge metrics
No merged PRs in 30d

Description

For quite some time test suite `vector-tests-O2` was unbuildable on CI for newer ghc versions 8.2 - 8.10 See:
* #272
* https://ghc.haskell.org/trac/ghc/ticket/13535

The culprit was Unboxed vector, in particular compiling the full collection of `Tests.Vector.Property.testPolymorphicFunctions` properties restricted to `Unboxed` vector was consuming the most memory (~15Gb) (probably because it has the most number of properties). As a temporary fix #273 disables inlining of that collection of properties for `Unboxed` vector only. Compilation of `Tests.Vector.Unboxed` still takes the most amount of memory, but it is bearable ~1Gb

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.