3 ms·
Java compilation may be ridiculously fast, but maven/gradle makes it crawl. > The only info I found for Rust mentions something along the 5k lines/second mark
by pkolaczk 2y ago
Java compilation may be ridiculously fast, but maven/gradle makes it crawl.
> The only info I found for Rust mentions something along the 5k lines/second mark (on a different computer)
On Pentium III?
Let's see how it performs on M3 Pro:
cargo loc --filter-platform=aarch64-apple-darwin
...
Total lines: 961318
(783408 code, 77484 comments, 100426 blank lines)
cargo clean
cargo build
Compiling libc v0.2.155
Compiling autocfg v1.1.0
Compiling cfg-if v1.0.0
Compiling proc-macro2 v1.0.69
Compiling unicode-ident v1.0.12
Compiling memchr v2.6.4
...
Compiling dtparse v2.0.0
Compiling fclones v0.35.0 (/Users/piotr/Projects/fclones/fclones)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.75s
Looks like it is about 80k LOC/s. Not bad.
If pure javac can also do 100k LOC/s (which is definitely something I believe is possible) but then "Maven/Gradle is an order of magnitude slower" then my point stands. No-one uses pure javac to compile big projects.
- vips7L 2y agoNow do an optimized build.