Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude unreferenced global data and op doc strings in the opschema object. The first causes a decrease in the binary size by at least 85k. The latter reduces resident memory size. #823

Merged
merged 3 commits into from
Apr 15, 2019

Conversation

pranavsharma
Copy link
Contributor

Exclude unreferenced global data and op doc strings in the opschema object. The first causes a decrease in the binary size by at least 85k. The latter reduces resident memory size. The most notable effect this change has is on the rdata size of onnx.lib. Unfortunately not all op doc strings are const char*s and not all of them get eliminated. More reading about this option is here: https://docs.microsoft.com/en-us/cpp/build/reference/gw-optimize-global-data?view=vs-2019

…bject. The first causes a decrease in the binary size by at least 85k. The latter reduces resident memory size.
@pranavsharma pranavsharma requested a review from a team as a code owner April 11, 2019 23:33
RyanUnderhill
RyanUnderhill previously approved these changes Apr 11, 2019
@pranavsharma
Copy link
Contributor Author

This is blocked on the ONNX pr onnx/onnx#1930

@pranavsharma pranavsharma merged commit 4b4a359 into master Apr 15, 2019
@raymondxyang raymondxyang deleted the reduce_onnx_lib_size branch April 26, 2019 07:43
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.

3 participants