aboutsummaryrefslogtreecommitdiff
path: root/ops/Data/Array/Strided.hs
diff options
context:
space:
mode:
authorMikolaj Konarski <mikolaj.konarski@funktory.com>2026-01-10 01:14:24 +0100
committerMikolaj Konarski <mikolaj.konarski@funktory.com>2026-01-12 18:45:16 +0100
commit6959b7e4769289983f008d558a71fe0dd2e3d279 (patch)
treed9143abeb0852dfe5084017c82f2bb7df63407e6 /ops/Data/Array/Strided.hs
parent53221892788fdc02f21a00f3026ab17f5696490e (diff)
Don't force a list of identical elements
This makes a big difference when a pair of lists is attempted to be streamed and the first one is of trivial primitive elements (e.g., when implementing a fold as a special case of mapAccum with the output list containing only ()). Forcing the first trivial list would cause the second non-trivial list to be represented as nested thunks, burdening GC greatly.
Diffstat (limited to 'ops/Data/Array/Strided.hs')
0 files changed, 0 insertions, 0 deletions