Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize build profile for datafusion python binding, cli and ballista #1137

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

houqp
Copy link
Member

@houqp houqp commented Oct 18, 2021

Rationale for this change

Following our own optimization guideline: https://arrow.apache.org/datafusion/user-guide/library.html. Each one of these changes resulted in 10-20% performance boost for roapi, so I figured we should set the same default for datafusion and ballista binaries.

What changes are included in this PR?

  • target skylake cpu for x86_64 build
  • enable lto in release profile
  • set codegen-units to 1 in release profile

Are there any user-facing changes?

no

@houqp houqp requested a review from Dandandan October 18, 2021 04:58
@houqp houqp added ballista datafusion Changes in the datafusion crate performance Make DataFusion faster labels Oct 18, 2021
@houqp houqp changed the title optimize build profile for python binding optimize build profile for python binding, datafusion cli and ballista Oct 18, 2021
@houqp houqp changed the title optimize build profile for python binding, datafusion cli and ballista optimize build profile for datafusion python binding, cli and ballista Oct 18, 2021
@@ -29,3 +29,7 @@ members = [
]

exclude = ["python"]

[profile.release]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would these settings end up applying to any crate that uses datafusion as a dependency? Or only when a project is built within the datafusion workspace?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe profiles are workspace specific. downstream projects need to set their own release profile if they need to get the same performance boost.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me

@alamb alamb merged commit 2eb2daa into apache:master Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate performance Make DataFusion faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants