konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C
https://teavm.org
Apache License 2.0
2.55k stars 262 forks source link

Improve inliner #796

Open konsoletyper opened 8 months ago

konsoletyper commented 8 months ago
  1. Use heuristics based on prediction whether certain methods are worth inlining since it provides more optimization opportunities, instead of current brute-force greedy approach.
  2. Don't inline all methods in one pass. Instead, take unoptimized method, inline everything that's possible and then apply optimizations. This should save memory.