Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize compile time by removing anonymous subclass #1976

Open
jatcwang opened this issue Jan 7, 2024 · 0 comments
Open

Optimize compile time by removing anonymous subclass #1976

jatcwang opened this issue Jan 7, 2024 · 0 comments
Milestone

Comments

@jatcwang
Copy link
Collaborator

jatcwang commented Jan 7, 2024

https://oyvindberg.github.io/typo/blog/the-cost-of-implicits/#avoiding-anonymous-classes

For example, we can try replacing various new Read (..) {} in

new Read(List((ev, Nullable)), ev.unsafeGetNullable) {}

Will be cool to verify the impact too. Here's his benchmark code

https://github.com/oyvindberg/typo/blob/53539fa8205327828958748dbd00b78e13bf6813/typo-scripts/src/scala/scripts/CompileBenchmark.scala

@jatcwang jatcwang added this to the Post 1.0 milestone Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant