Remove potential space leak from Data.List.transpose
Thank you for your contribution to GHC!
Please take a few moments to verify that your commits fulfill the following:
-
are either individually buildable or squashed -
have commit messages which describe what they do (referring to Notes and tickets using #NNNN
syntax when appropriate) -
have added source comments describing your change. For larger changes you likely should add a Note and cross-reference it from the relevant places. -
add a testcase to the testsuite. -
replace this message with a description motivating your change
If you have any questions don't hesitate to open your merge request and inquire
in a comment. If your patch isn't quite done yet please do add prefix your MR
title with WIP:
.
Merge request reports
Activity
I think some slowdown of the typical case is acceptable to prevent a space leak - which can be a major problem - on the basis that those seeking high performance will not be using lists in the first place. It's also fortunate that this is a small change and I appreciate that it comes with an explanatory comment.
I'm
on this already, but could you perhaps add a test case that finds the space leak in the old code and is satisfied by the new code?added core libraries label
assigned to @marge-bot
I will attempt to batch this MR (!3963 (closed))...
Merged in c30cc0e9