4 ms·
Curious how many folks here experimented with the now depreciated Ahead-of-Time Compilation feature?
by Fiveplus 6y ago
Curious how many folks here experimented with the now depreciated Ahead-of-Time Compilation feature?
- JCWasmx86 6y agoI did experiment with it to improve the startup times of one of my applications (Java Swing). The gain was quite small, nearly not noticeable.
- _old_dude_ 6y agoI did, the main issue is that jaotc doesn't do any pruning of the unused methods, so it generates too much assembly code. If i remember correctly, compiling just guava was to close to 1 gig. GraalVM native image is far better, it "compiles" more slowly but the resulting executable is not too big.
- tannhaeuser 6y agoOnly briefly tested it. I thought RH's Quarkus project made use of it, didn't it? What's the post-16 way of Java AOT compilation?
- kaba0 6y agoGraal is a separate project and jaotc did use that. I believe the reason for the “separation” is that the two projects have different priorities and didn’t develop at the same pace. I believe graal is still only at version 11. But since Java, the language is highly backward compatible, one can trivially use Graal as is (without the preview features though)