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

[7.3.0] Push makeExecutable down into AbstractFileWriteAction subclasses #22750

Closed
wants to merge 2 commits into from

Conversation

bazel-io
Copy link
Member

Getting rid of the single boolean field on AbstractFileWriteAction reduces padding on each subclass instance and in particular frees up a 4-byte field on CppModuleMapAction.

Also use a lambda to define newDeterministicWriter if possible for improved readability.

This prepares for future changes that will add fields to CppModuleMapAction to support path mapping.

Work towards #6526

Closes #22609.

PiperOrigin-RevId: 643340715
Change-Id: Id3af26049098e6dfa731f0e7a1be6709bea0d9f2

Commit f8a7a61

Getting rid of the single boolean field on `AbstractFileWriteAction` reduces padding on each subclass instance and in particular frees up a 4-byte field on `CppModuleMapAction`.

Also use a lambda to define `newDeterministicWriter` if possible for improved readability.

This prepares for future changes that will add fields to `CppModuleMapAction` to support path mapping.

Work towards bazelbuild#6526

Closes bazelbuild#22609.

PiperOrigin-RevId: 643340715
Change-Id: Id3af26049098e6dfa731f0e7a1be6709bea0d9f2
@bazel-io bazel-io requested a review from a team as a code owner June 14, 2024 15:09
@bazel-io bazel-io added team-Configurability platforms, toolchains, cquery, select(), config transitions team-Rules-CPP Issues for C++ rules team-Rules-Python Native rules for Python awaiting-review PR is awaiting review from an assigned reviewer labels Jun 14, 2024
@bazel-io bazel-io requested a review from justinhorvitz June 14, 2024 15:09
@meteorcloudy
Copy link
Member

/cc @fmeum Please take a look at the presubmit failure.

@fmeum
Copy link
Collaborator

fmeum commented Jun 21, 2024

@meteorcloudy I sent #22845

@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Jun 21, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jun 21, 2024
…classes (#22845)

Getting rid of the single boolean field on `AbstractFileWriteAction`
reduces padding on each subclass instance and in particular frees up a
4-byte field on `CppModuleMapAction`.

Also use a lambda to define `newDeterministicWriter` if possible for
improved readability.

This prepares for future changes that will add fields to
`CppModuleMapAction` to support path mapping.

Work towards #6526

Closes #22609.

PiperOrigin-RevId: 643340715
Change-Id: Id3af26049098e6dfa731f0e7a1be6709bea0d9f2

Closes #22749 
Closes #22750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions team-Rules-CPP Issues for C++ rules team-Rules-Python Native rules for Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants