OT: support for multicore javac?

Jonathan Chen jonc at chen.org.nz
Fri Jul 17 22:34:33 UTC 2020


On Fri, 17 Jul 2020 at 15:35, Aryeh Friedman <aryeh.friedman at gmail.com> wrote:
>
> I have a rather large code base that takes several minutes to compile even
> when doing javac `find src -name '*.java'`.  SInce I do not use ant or any
> other Java based build system (I use devel/cook for many reasons most of
> which fit the project much better then ant or the Java only build
> systems).   I was reading about a program called sjavac (smart-javac) as a
> possible way to make javac splatter the compile across multiple cores.   It
> does not seem to be anywhere in the ports collection (independent or in
> connection to another port).    Any suggestions on how to get/install it
> and/or other ways of making javac use multiple cores?

I'm building eclipse, and invocations to javac seem to spread across
multiple cores when building with multiple threads using openjdk11; at
least that's what "top -H" tells me. I don't see what smart-javac
brings to the table.

Cheers.
-- 
Jonathan Chen <jonc at chen.org.nz>


More information about the freebsd-java mailing list