Skip to content

Add NumericFenwickTree helper for virtualized-lists - #60565

Open
Abbondanzo wants to merge 2 commits into
react:mainfrom
Abbondanzo:export-D136000344
Open

Abbondanzo wants to merge 2 commits into
react:mainfrom
Abbondanzo:export-D136000344

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:
Adds a standalone NumericFenwickTree data structure in react-native/virtualized-lists supporting O(log N) point updates, prefix/range sums, dynamic power-of-2 growth, and findNth order-statistic lookup for upcoming ListMetricsAggregator spacer and offset optimizations.

Changelog:
[Internal]

Differential Revision: D136000344

Summary:
Adds a default-off `fixVirtualizedListMaintainVisibleContentPosition` common feature flag across JS, C++, Android, and iOS so variable-height `VirtualizedList` scroll-stability improvements can land behind a single kill switch while retaining existing behavior by default.

Changelog:
[Internal]

Differential Revision: D136000343
Summary:
Adds a standalone `NumericFenwickTree` data structure in `react-native/virtualized-lists` supporting O(log N) point updates, prefix/range sums, dynamic power-of-2 growth, and `findNth` order-statistic lookup for upcoming `ListMetricsAggregator` spacer and offset optimizations.

Changelog:
[Internal]

Differential Revision: D136000344
@meta-codesync

meta-codesync Bot commented Dec 4, 2026

Copy link
Copy Markdown

@Abbondanzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D136000344.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant