Open NTillmann opened 5 years ago
Right, so what's happening here is that when we optimize the function in array.map, we record that we should optimize g
, but g
doesn't exist when we try to optimize it at the end of global code execution unless we apply the effects from the array.map optimized function.
We need to either record that the array.map function is the parent of g
and apply it's effects before optimizing g
or add a way to optimize g
inplace during the call to map #2336
Prepacking this, with --instantRender (to trigger realm.arrayNestedOptimizedFunctionsEnabled, which is not otherwise directly exposed via the CLI)...
...results in...
Note that
_8
did NOT get optimized!Also note that this message was produced:
Not helpful, rather confusing, but likely related?