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

ASM: Do operation optimizations in specialized builder #453

Open
CommanderTvis opened this issue Feb 4, 2022 · 0 comments
Open

ASM: Do operation optimizations in specialized builder #453

CommanderTvis opened this issue Feb 4, 2022 · 0 comments
Labels
performance Performance optimization issue

Comments

@CommanderTvis
Copy link
Collaborator

CommanderTvis commented Feb 4, 2022

  1. x^2 -> x*x
  2. x^3 -> x*x*x
  3. x^(1/3) -> java.lang.Math.cbrt(x)
  4. x^(1/2) -> java.lang.Math.sqrt(x)

In all of these cases, invoking Math.pow is more expensive.

@CommanderTvis CommanderTvis changed the title Do operation optimizations for specialized ASM compilation ASM: Do operation optimizations in specialized builder Feb 4, 2022
@CommanderTvis CommanderTvis added the performance Performance optimization issue label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance optimization issue
Projects
None yet
Development

No branches or pull requests

1 participant