You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But elm/core's String.startsWith is implemented as startsWith = Elm.Kernel.String.startsWith in Elm (var $elm$core$String$startsWith = _String_startsWith; in JS).
The transformer currently ignores these kinds of functions, meaning that they don't benefit from the same optimization. I think the transformer could try to be smarter by noticing this is an alias to a previously optimized function, and split it up as well.
The
inlineWrappedFunctions
transformer transformsBut
elm/core
'sString.startsWith
is implemented asstartsWith = Elm.Kernel.String.startsWith
in Elm (var $elm$core$String$startsWith = _String_startsWith;
in JS).The transformer currently ignores these kinds of functions, meaning that they don't benefit from the same optimization. I think the transformer could try to be smarter by noticing this is an alias to a previously optimized function, and split it up as well.
and then have the transformer use the most optimized version for the newly optimized functions also.
The text was updated successfully, but these errors were encountered: