Skip to content

Convert some docstrings from char* to char[]#13062

Closed
dreiss wants to merge 2 commits intopytorch:masterfrom
dreiss:export-D10510808
Closed

Convert some docstrings from char* to char[]#13062
dreiss wants to merge 2 commits intopytorch:masterfrom
dreiss:export-D10510808

Conversation

@dreiss
Copy link
Copy Markdown
Contributor

@dreiss dreiss commented Oct 24, 2018

Summary:
Gold (the linker) isn't able to gc unreferenced string constants, but
converting these to arrays puts them in their own data sections and reduces
(Android) binary size as a result.

I'm told even in server builds, this reduces binary size by a few dozen bytes
and speeds up startup by a few hundred ns. :-P

Reviewed By: Yangqing

Differential Revision: D10510808

Summary:
Focusing on operators in common use on mobile.

Also use GRADIENT_OPERATOR_SCHEMA.

Differential Revision: D10245216

fbshipit-source-id: 5100c7b541941de48e49e9458b26f0f3a5499a95
Summary:
Gold (the linker) isn't able to gc unreferenced string constants, but
converting these to arrays puts them in their own data sections and reduces
(Android) binary size as a result.

I'm told even in server builds, this reduces binary size by a few dozen bytes
and speeds up startup by a few hundred ns. :-P

Reviewed By: Yangqing

Differential Revision: D10510808

fbshipit-source-id: 734412fd6b3d0545c8d85d2232400d2494031d55
@ezyang ezyang added the merged label Jun 25, 2019
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#13062

Gold (the linker) isn't able to gc unreferenced string constants, but
converting these to arrays puts them in their own data sections and reduces
(Android) binary size as a result.

I'm told even in server builds, this reduces binary size by a few dozen bytes
and speeds up startup by a few hundred ns. :-P

Reviewed By: Yangqing

Differential Revision: D10510808

fbshipit-source-id: 247ba9574e7a9b6a8204d33052994b08c401c197
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.

2 participants