-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
[jit] Reclaim some binary size. #68038
Conversation
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow For more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 0345181 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) ghstack-source-id: 142764417 Pull Request resolved: #68038
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) [ghstack-poisoned]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller. Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619/) Differential Revision: [D32264619](https://our.internmc.facebook.com/intern/diff/D32264619) [ghstack-poisoned]
Stack from ghstack:
Replace const std::function& to c10::function_ref because the former uses type erasure and adds 5-10 KB size overhead and adds another level of indirection to call the underlying functions. In contrast a non-owning c10::function_ref will just compile down to a raw function pointer which should be much smaller.
Differential Revision: D32264619
Differential Revision: D32264619