-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add runtime.TupleMirror to avoid anonymous classes for mirrors of tuples #15404
Conversation
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com> Co-authored-by: Nicolas Stucki <nicolas.stucki@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks good.
Nice simplifications in the Synthesizer logic.
136dcc4
to
a2c15a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
a2c15a3
to
368673d
Compare
What do you think about adding a runtime constructor for anonymous mirrors that takes a function? Then we could reduce the amount of generated code to a single lambda which doesn't need an anonymous class. |
adds the
runtime.TupleMirror
class as a way to decrease bytecode generation for mirrors of Tuples. Also adapts mirror synthesis to use TupleMirror for mirrors of tuples.Follow up work is to enable Synthesizer to accept tuples of arity > 22
fixes #15399