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
We can get rid of the Transformer.ToAnyVal, Transformer.FromAnyVal and Transformer.ForProduct instances by 'inlining' their insides, eg. for this line:
The text was updated successfully, but these errors were encountered:
arainko
changed the title
Optimize the number of Transformer instances during method expansions by rewriting the generated code
Optimize the number of Transformer instances during method expansions
Oct 22, 2022
Pretty much the same as #16 but for
via
andintoVia
, the generated code is kind of different due to beta-reduction of the lambda.Example:
The output is:
We can get rid of the
Transformer.ToAnyVal
,Transformer.FromAnyVal
andTransformer.ForProduct
instances by 'inlining' their insides, eg. for this line:The rewritten version should just look like this:
The text was updated successfully, but these errors were encountered: