Skip to content

Conversation

@kazutoiris
Copy link
Contributor

What is the purpose of the change

  • Enhanced CI build performance with parallel execution support.
  • Introduced a quick build profile, enabling repeated builds in just 25% of the original duration.

Related issues/PRs

Related issues: close #5321

Brief change log

Based on data from GitHub Action, the table below compares Maven build performance across 4 configurations using mvn package.

Build profiles are defined as:

  • Cold build: First execution (no prior artifacts).
  • Warm build: After mvn clean followed by re-execution.
  • Hot build: Without clean, directly re-executing after a successful build.

Parameters were activated:

  • -Pquick for quick builds.
  • -T 4C for parallel builds.
Profile Cold Build Time (s) Warm Build Time (s) Hot Build Time (s)
normal build 1056 (1.95x) 1046 (1.96x) 615 (4.18x)
normal build (parallel) 998 (1.84x) 994 (1.86x) 588 (4.00x)
quick build 658 (1.22x) 650 (1.22x) 205 (1.39x)
quick build (parallel) 541 (1.00x) 534 (1.00x) 147 (1.00x)
  • quick profiles outperform normal by 1.2–4.2×.
  • Parallel execution reduces build times by ~1.8–4.2× compared to non-parallel variants.

Checklist

  • I have read the Contributing Guidelines on pull requests.
  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
  • If this is a code change: I have written unit tests to fully verify the new behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant