Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add perf_linter to auto-fix some anti-patterns #148416

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

Draft
wants to merge 2 commits into
base: gh/jansel/517/base
Choose a base branch
from

Conversation

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Mar 4, 2025
Copy link

pytorch-bot bot commented Mar 4, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/148416

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures

As of commit 8f30efa with merge base aade4fb (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

[ghstack-poisoned]
"""
ERROR1 = "Generators are slow! Use list comprehensions instead."
ERROR2 = "list(x) is slow! Use [*x] instead."
ERROR3 = "list()/dict() is slow! Use []/{} instead."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not reinvent the wheel here: C408 already does this. It's just disabled because "we like the old dict kwarg syntax` even though it's slower, less efficient etc.

Divigroup-RAP pushed a commit to Divigroup-RAP/PYTORCH that referenced this pull request Apr 22, 2025
Copy link
Contributor

github-actions bot commented May 3, 2025

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants