Skip to content

Remove enableDifferentiatorMutationVectorPreallocation feature flag#57224

Closed
sammy-SC wants to merge 1 commit into
react:mainfrom
sammy-SC:export-D108411519
Closed

Remove enableDifferentiatorMutationVectorPreallocation feature flag#57224
sammy-SC wants to merge 1 commit into
react:mainfrom
sammy-SC:export-D108411519

Conversation

@sammy-SC

Copy link
Copy Markdown
Contributor

Summary:
The enableDifferentiatorMutationVectorPreallocation flag gated a mutation-vector pre-allocation optimization in the Differentiator. It was never ramped and is being removed. The flag defaulted to false, so this restores the pre-flag behavior by deleting the gated reserve(...) calls (an allocation hint with no effect on diffing results) and keeping the default mutations.reserve(256).

Removes the flag definition from ReactNativeFeatureFlags.config.js, the gated call sites in Differentiator.cpp, and the regenerated feature-flag files (via yarn featureflags --update).

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D108411519

Summary:
The `enableDifferentiatorMutationVectorPreallocation` flag gated a mutation-vector pre-allocation optimization in the `Differentiator`. It was never ramped and is being removed. The flag defaulted to `false`, so this restores the pre-flag behavior by deleting the gated `reserve(...)` calls (an allocation hint with no effect on diffing results) and keeping the default `mutations.reserve(256)`.

Removes the flag definition from `ReactNativeFeatureFlags.config.js`, the gated call sites in `Differentiator.cpp`, and the regenerated feature-flag files (via `yarn featureflags --update`).

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D108411519
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 16, 2026
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown

@sammy-SC has exported this pull request. If you are a Meta employee, you can view the originating Diff in D108411519.

@meta-codesync meta-codesync Bot closed this in 8634ecb Jun 16, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jun 16, 2026
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown

This pull request has been merged in 8634ecb.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant