Skip to content

Add py_permanently_disable_stats config option to Grain. - #1426

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_996754722
Oct 13, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_996754722

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Add py_permanently_disable_stats config option to Grain.

When enabled, MapDataset._initialize_stats, DatasetIterator._initialize_stats, and make_stats immediately return a singleton no-op _NULL_STATS instance to avoid stats tree initialization overhead on large mixtures.

When enabled, `MapDataset._initialize_stats`, `DatasetIterator._initialize_stats`, and `make_stats` immediately return a singleton no-op `_NULL_STATS` instance to avoid stats tree initialization overhead on large mixtures.

PiperOrigin-RevId: 998750494
@copybara-service
copybara-service Bot merged commit adf4d15 into main Oct 13, 2026
8 of 9 checks passed
@copybara-service
copybara-service Bot deleted the test_996754722 branch October 13, 2026 17:59
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