Skip to content

Replace absent lazy function arguments with rubbishLit even without W/W.

Currently for something like const (assuming it isn't inlined) we often see code like this:

foo x y z = .... const x y ....

W/W would iirc transform this into:

foo x y z = $wfoo x z

$wfoo = ... const x <rubbishLit> ...

Which means y` isn't unnecessarily retained. However there seems little reason to limit this to worker wrapper.
Even without worker wrapper if we have

foo x y z = .... const x y ....

it should be fine to rewrite this into:

foo x y z = .... const x <rubbishLit> ....

It's possible I'm missing something but I think that should be fine and allow us to gc y as soon as we entered foo.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information