Skip to content

Reduce TF-Text wheel size by filtering ICU 77 data and stripping binaries. - #1539

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_967959313
Aug 20, 2026
Merged

Reduce TF-Text wheel size by filtering ICU 77 data and stripping binaries.#1539
copybara-service[bot] merged 1 commit into
masterfrom
test_967959313

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Reduce TF-Text wheel size by filtering ICU 77 data and stripping binaries.

  • Regenerate normalization_data.c.oss using ICU 77.1 with filters.json enabled ("normalization": "include") rather than bundling the entire unfiltered ICU data archive. This reduces the source data file from ~91 MB to ~616 KB (and compiled in-binary .rodata from ~32 MB to ~220 KB across dependent shared libraries).
  • Add shared library symbol stripping (strip -x on macOS, strip --strip-unneeded on Linux) in build_pip_package.py to eliminate unnecessary DWARF debug sections and local symbol tables from wheels.
  • Drops the final .whl package size from ~60-95 MB down to ~5-7 MB, resolving PyPI upload limits.

@copybara-service
copybara-service Bot force-pushed the test_967959313 branch 2 times, most recently from d7df0a8 to 30e472f Compare August 20, 2026 18:59
…ries.

- Regenerate `normalization_data.c.oss` using ICU 77.1 with `filters.json` enabled ("normalization": "include") rather than bundling the entire unfiltered ICU data archive. This reduces the source data file from ~91 MB to ~616 KB (and compiled in-binary `.rodata` from ~32 MB to ~220 KB across dependent shared libraries).
- Add shared library symbol stripping (`strip -x` on macOS, `strip --strip-unneeded` on Linux) in `build_pip_package.py` to eliminate unnecessary DWARF debug sections and local symbol tables from wheels.
- Drops the final `.whl` package size from ~60-95 MB down to ~5-7 MB, resolving PyPI upload limits.

PiperOrigin-RevId: 967966028
@copybara-service
copybara-service Bot merged commit 9c8dad9 into master Aug 20, 2026
8 checks passed
@copybara-service
copybara-service Bot deleted the test_967959313 branch August 20, 2026 19:01
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