summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorViktor Dukhovni <ietf-dane@dukhovni.org>2021-06-04 18:25:51 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-06-07 15:35:22 -0400
commit9e724f6e5bcb31abd270ea44fb01b1edb18f626f (patch)
treec831533bb6de654bd794bc709575220cc2bfb497 /ghc
parent40c0f67fb557b8d0d02eb805eb94db378489d580 (diff)
downloadhaskell-9e724f6e5bcb31abd270ea44fb01b1edb18f626f.tar.gz
Small ZipList optimisation
In (<|>) for ZipList, avoid processing the first argument twice (both as first argument of (++) and for its length in drop count of the second argument). Previously, the entire first argument was forced into memory, now (<|>) can run in constant space even with long inputs.
Diffstat (limited to 'ghc')
0 files changed, 0 insertions, 0 deletions