You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2021/04/22 11:24:51 UTC
[lucene] branch main updated: LUCENE-9928: speed up analysis/icu
regeneration (#82)
This is an automated email from the ASF dual-hosted git repository.
rmuir pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 044d152 LUCENE-9928: speed up analysis/icu regeneration (#82)
044d152 is described below
commit 044d152d954f1e22aac5a53792011da54c680617
Author: Robert Muir <rm...@apache.org>
AuthorDate: Thu Apr 22 07:24:44 2021 -0400
LUCENE-9928: speed up analysis/icu regeneration (#82)
The compilation of the library is slow, disable optimization as it doesn't speed up our usage of the gennorm2 tool.
Use better heuristic for make parallelism (tests.jvms rather than just hardcoded value of four).
---
gradle/generation/icu.gradle | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gradle/generation/icu.gradle b/gradle/generation/icu.gradle
index 2b8cb77..e652668 100644
--- a/gradle/generation/icu.gradle
+++ b/gradle/generation/icu.gradle
@@ -200,7 +200,7 @@ configure(project(":lucene:analysis:icu")) {
executable "tar"
workingDir icuBuildDir
args = [
- "-zxvf",
+ "-zxf",
icuSrcTgz
]
}
@@ -210,6 +210,8 @@ configure(project(":lucene:analysis:icu")) {
executable "sh"
workingDir icuSrcDir
+ environment("CFLAGS", "-O0")
+ environment("CXXFLAGS", "-O0")
args = [
"configure",
"--prefix=${icuSrcDir}",
@@ -221,7 +223,7 @@ configure(project(":lucene:analysis:icu")) {
executable "make"
workingDir icuSrcDir
args = [
- "-j4"
+ "-j${propertyOrDefault('tests.jvms', '4')}"
]
}
@@ -300,4 +302,4 @@ configure(project(":lucene:core")) {
}
regenerate.dependsOn wrapWithPersistentChecksums(generateEmojiPropertiesInternal)
-}
\ No newline at end of file
+}