Skip to content

Use static functions/variables if possible (#4423) #4427

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

q10
Copy link
Contributor

@q10 q10 commented Jul 1, 2025

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/1494

There are two changes:

  1. Marks in-file templates and other inner functions as static; this provides more opportunities to optimise code, i.e. followed by enabling link time optimization. An unused function in test code is removed.
  2. Enables misc-use-internal-linkage check.

Reviewed By: gchalump

Differential Revision: D77601071

Pulled By: q10

Summary:
X-link: facebookresearch/FBGEMM#1494

There are two changes:
1. Marks in-file templates and other inner functions as static; this provides more opportunities to optimise code, i.e. followed by enabling link time optimization. An unused function in test code is removed.
2. Enables `misc-use-internal-linkage` check.

Pull Request resolved: pytorch#4423

Reviewed By: gchalump

Differential Revision: D77601071

Pulled By: q10
Copy link

netlify bot commented Jul 1, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 8e626e7
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/68641d88f39803000828ed62
😎 Deploy Preview https://deploy-preview-4427--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77601071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants