apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.64k stars 1.02k forks source link

gradlew(.bat) should pass --parallel flag [LUCENE-9181] #10221

Open asfimport opened 4 years ago

asfimport commented 4 years ago

Followup to #10219.

For example I have 2 real cores (4 apparent cpus, hyperthreads). With #10219 change the build will work the first time, but it will only use one builder and take an eternity.

Instead if these wrappers passed --parallel then the first build would use 4 builders (built in gradle default).

Subsequent builds for me would only use 2, we still pass --parallel but now our gradle.properties tells it to only use 2

would give a better first experience (fans spin a bit higher for that first build, but better than slow as hell?)


Migrated from LUCENE-9181 by Robert Muir (@rmuir)

asfimport commented 4 years ago

Dawid Weiss (@dweiss) (migrated from JIRA)

These wrappers are sometimes regenerated so such tweaks would have to be reapplied but sounds ok to me! An alternative is to stop the build on the first run and require a re-run... Seems lame though.